Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1333)

Unified Diff: content/browser/appcache/appcache_internals_ui.cc

Issue 1305333002: Clearly label incognito profiles in the appcache-internals webui. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/appcache/appcache_internals_ui.cc
diff --git a/content/browser/appcache/appcache_internals_ui.cc b/content/browser/appcache/appcache_internals_ui.cc
index f14909da53da56eed32a067e98012ecb9ed8c8d4..dfd06b167bd4dd3af6bdc3e38c21ca1c4f0ff354 100644
--- a/content/browser/appcache/appcache_internals_ui.cc
+++ b/content/browser/appcache/appcache_internals_ui.cc
@@ -413,9 +413,12 @@ void AppCacheInternalsUI::GetFileDetails(const base::ListValue* args) {
void AppCacheInternalsUI::OnAllAppCacheInfoReady(
scoped_refptr<AppCacheInfoCollection> collection,
const base::FilePath& partition_path) {
+ std::string incognito_path_prefix;
+ if (browser_context()->IsOffTheRecord())
+ incognito_path_prefix = "Incognito ";
web_ui()->CallJavascriptFunction(
kFunctionOnAllAppCacheInfoReady,
- base::StringValue(partition_path.AsUTF8Unsafe()),
+ base::StringValue(incognito_path_prefix + partition_path.AsUTF8Unsafe()),
*GetListValueFromAppCacheInfoCollection(collection.get()));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698