Chromium Code Reviews| Index: chrome/browser/profiles/profile_impl.cc |
| diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc |
| index d77edf8ec9633d8e0c64750bb007a9dd9b2f3034..080047c96852a18b9804fb34549c3d34e2fc4892 100644 |
| --- a/chrome/browser/profiles/profile_impl.cc |
| +++ b/chrome/browser/profiles/profile_impl.cc |
| @@ -80,6 +80,7 @@ |
| #include "chrome/common/pref_names.h" |
| #include "chrome/common/url_constants.h" |
| #include "content/public/browser/browser_thread.h" |
| +#include "content/public/browser/dom_storage_context.h" |
| #include "content/public/browser/host_zoom_map.h" |
| #include "content/public/browser/notification_service.h" |
| #include "content/public/browser/user_metrics.h" |
| @@ -300,6 +301,11 @@ ProfileImpl::ProfileImpl(const FilePath& path, |
| } else { |
| NOTREACHED(); |
| } |
| + |
| + if (command_line->HasSwitch(switches::kEnableRestoreSessionState)) { |
| + content::BrowserContext::GetDOMStorageContext(this)-> |
|
sail
2012/07/12 17:20:04
I guess this is ok. I still think this doesn't hav
marja
2012/07/13 09:05:17
The dom storage layer doesn't know about profiles,
|
| + SetSaveSessionStorageOnDisk(); |
| + } |
| } |
| void ProfileImpl::DoFinalInit(bool is_new_profile) { |