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

Unified Diff: content/browser/service_worker/service_worker_internals_ui.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
« no previous file with comments | « content/browser/service_worker/service_worker_context_wrapper.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/service_worker_internals_ui.cc
diff --git a/content/browser/service_worker/service_worker_internals_ui.cc b/content/browser/service_worker/service_worker_internals_ui.cc
index 8f59ea5a2994d720173bfefba81c3b9e5048555c..5bac0caf7cfb4d975d72ca223a5f841bd8c39df4 100644
--- a/content/browser/service_worker/service_worker_internals_ui.cc
+++ b/content/browser/service_worker/service_worker_internals_ui.cc
@@ -500,6 +500,7 @@ void ServiceWorkerInternalsUI::AddContextFromStoragePartition(
context->AddObserver(new_observer.get());
observers_.set(reinterpret_cast<uintptr_t>(partition), new_observer.Pass());
}
+
BrowserThread::PostTask(
BrowserThread::IO,
FROM_HERE,
@@ -510,7 +511,9 @@ void ServiceWorkerInternalsUI::AddContextFromStoragePartition(
base::Bind(OnAllRegistrations,
AsWeakPtr(),
partition_id,
- partition->GetPath()))));
+ context->is_incognito()
+ ? base::FilePath()
+ : partition->GetPath()))));
}
void ServiceWorkerInternalsUI::RemoveObserverFromStoragePartition(
« no previous file with comments | « content/browser/service_worker/service_worker_context_wrapper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698