Commit 72ee10c3 authored by Sam McNally's avatar Sam McNally Committed by Commit Bot

Use the GCache directory as the root for showing GCache contents.

The drive-internals page uses GCache/v1 as the root for the files
displayed in the GCache Contents section of about:drive-internals. Use
its parent instead so the GCache/v2 contents are also displayed.

Bug: 829703
Change-Id: I7e47db743737a2331484e2b913600051470000b5
Reviewed-on: https://chromium-review.googlesource.com/1174135Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
Commit-Queue: Sam McNally <sammc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#583046}
parent 72931112
......@@ -680,7 +680,8 @@ void DriveInternalsWebUIHandler::UpdateGCacheContentsSection() {
// Start updating the GCache contents section.
Profile* profile = Profile::FromWebUI(web_ui());
const base::FilePath root_path = drive::util::GetCacheRootPath(profile);
const base::FilePath root_path =
drive::util::GetCacheRootPath(profile).DirName();
base::ListValue* gcache_contents = new base::ListValue;
base::DictionaryValue* gcache_summary = new base::DictionaryValue;
base::PostTaskWithTraitsAndReply(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment