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( |