Commit f83a3613 authored by Sigurdur Asgeirsson's avatar Sigurdur Asgeirsson Committed by Commit Bot

RC: Fix the DB inspector for incognito tabs.

Bug: 874968
Change-Id: Ifefec30eb6701cd6da584c54682fd4488a7e3527
Reviewed-on: https://chromium-review.googlesource.com/1246282Reviewed-by: default avatarFrançois Doray <fdoray@chromium.org>
Commit-Queue: Sigurður Ásgeirsson <siggi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#594347}
parent 66265f84
......@@ -84,7 +84,7 @@ KeyedService* LocalSiteCharacteristicsDataStoreFactory::BuildServiceInstanceFor(
DCHECK(!parent_context->IsOffTheRecord());
LocalSiteCharacteristicsDataStoreInspector* parent_debug =
LocalSiteCharacteristicsDataStoreInspector::GetForProfile(
Profile::FromBrowserContext(context));
Profile::FromBrowserContext(parent_context));
SiteCharacteristicsDataStore* data_store_for_readers =
GetExistingDataStoreForContext(parent_context);
DCHECK(data_store_for_readers);
......
......@@ -62,8 +62,10 @@ LocalSiteCharacteristicsNonRecordingDataStore::GetAllInMemoryOrigins() {
void LocalSiteCharacteristicsNonRecordingDataStore::GetDatabaseSize(
DatabaseSizeCallback on_have_data) {
if (!data_store_inspector_)
if (!data_store_inspector_) {
std::move(on_have_data).Run(base::nullopt, base::nullopt);
return;
}
data_store_inspector_->GetDatabaseSize(std::move(on_have_data));
}
......
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