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

Unified Diff: content/browser/indexed_db/indexed_db_context_impl.cc

Issue 388583003: Indicate incognito in Service Worker and IndexedDB internals pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
Index: content/browser/indexed_db/indexed_db_context_impl.cc
diff --git a/content/browser/indexed_db/indexed_db_context_impl.cc b/content/browser/indexed_db/indexed_db_context_impl.cc
index c2bd0afa62cf334ca226bd1aef8f8a289b5a7408..f8e43153b45bf60acedddc13de715159da275783 100644
--- a/content/browser/indexed_db/indexed_db_context_impl.cc
+++ b/content/browser/indexed_db/indexed_db_context_impl.cc
@@ -181,7 +181,8 @@ base::ListValue* IndexedDBContextImpl::GetAllOriginsDetails() {
info->SetString("size", ui::FormatBytes(GetOriginDiskUsage(origin_url)));
info->SetDouble("last_modified",
GetOriginLastModified(origin_url).ToJsTime());
- info->SetString("path", GetFilePath(origin_url).value());
+ if (!is_incognito())
+ info->SetString("path", GetFilePath(origin_url).value());
info->SetDouble("connection_count", GetConnectionCount(origin_url));
// This ends up being O(n^2) since we iterate over all open databases
« no previous file with comments | « content/browser/indexed_db/indexed_db_context_impl.h ('k') | content/browser/indexed_db/indexed_db_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698