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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 10837230: Move StoragePartition into content/public and remove BrowserContext::GetDOMStorageContext(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: style fixes. Created 8 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
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index f5bb9c50c11291fcfa411cfd1b5322c773a3272d..5096f065ebf4de7f8b3c18a87a9629451b71a6e0 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -85,6 +85,7 @@
#include "content/public/browser/host_zoom_map.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/render_process_host.h"
+#include "content/public/browser/storage_partition.h"
#include "content/public/browser/user_metrics.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
@@ -317,8 +318,12 @@ ProfileImpl::ProfileImpl(const FilePath& path,
}
if (command_line->HasSwitch(switches::kEnableRestoreSessionState)) {
- content::BrowserContext::GetDefaultDOMStorageContext(this)->
- SetSaveSessionStorageOnDisk();
+ // TODO(ajwong): This may be unsafe in the constructor as this calls back
+ // into ExtensionService.
+ //
+ // http://crbug.com/142656
+ content::BrowserContext::GetDefaultStoragePartition(this)->
+ GetDOMStorageContext()->SetSaveSessionStorageOnDisk();
}
}

Powered by Google App Engine
This is Rietveld 408576698