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

Side by Side Diff: chrome/browser/profiles/profile_impl.cc

Issue 10830216: Enable storing and restoring sessionStorage by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes in; this is simple again. 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/profiles/profile_impl.h" 5 #include "chrome/browser/profiles/profile_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/environment.h" 10 #include "base/environment.h"
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 ChromePluginServiceFilter::GetInstance()->RegisterResourceContext( 415 ChromePluginServiceFilter::GetInstance()->RegisterResourceContext(
416 PluginPrefs::GetForProfile(this), 416 PluginPrefs::GetForProfile(this),
417 io_data_.GetResourceContextNoInit()); 417 io_data_.GetResourceContextNoInit());
418 418
419 // Delay README creation to not impact startup performance. 419 // Delay README creation to not impact startup performance.
420 BrowserThread::PostDelayedTask( 420 BrowserThread::PostDelayedTask(
421 BrowserThread::FILE, FROM_HERE, 421 BrowserThread::FILE, FROM_HERE,
422 base::Bind(&EnsureReadmeFile, GetPath()), 422 base::Bind(&EnsureReadmeFile, GetPath()),
423 base::TimeDelta::FromMilliseconds(create_readme_delay_ms)); 423 base::TimeDelta::FromMilliseconds(create_readme_delay_ms));
424 424
425 if (CommandLine::ForCurrentProcess()->HasSwitch( 425 if (!CommandLine::ForCurrentProcess()->HasSwitch(
426 switches::kEnableRestoreSessionState)) { 426 switches::kDisableRestoreSessionState)) {
427 content::BrowserContext::GetDefaultDOMStorageContext(this)-> 427 content::BrowserContext::GetDefaultDOMStorageContext(this)->
428 SetSaveSessionStorageOnDisk(); 428 SetSaveSessionStorageOnDisk();
429 } 429 }
430 430
431 // Creation has been finished. 431 // Creation has been finished.
432 if (delegate_) 432 if (delegate_)
433 delegate_->OnProfileCreated(this, true, is_new_profile); 433 delegate_->OnProfileCreated(this, true, is_new_profile);
434 434
435 content::NotificationService::current()->Notify( 435 content::NotificationService::current()->Notify(
436 chrome::NOTIFICATION_PROFILE_CREATED, 436 chrome::NOTIFICATION_PROFILE_CREATED,
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
1075 if (!path.empty()) 1075 if (!path.empty())
1076 *cache_path = path; 1076 *cache_path = path;
1077 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : 1077 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) :
1078 prefs_->GetInteger(prefs::kDiskCacheSize); 1078 prefs_->GetInteger(prefs::kDiskCacheSize);
1079 } 1079 }
1080 1080
1081 base::Callback<ChromeURLDataManagerBackend*(void)> 1081 base::Callback<ChromeURLDataManagerBackend*(void)>
1082 ProfileImpl::GetChromeURLDataManagerBackendGetter() const { 1082 ProfileImpl::GetChromeURLDataManagerBackendGetter() const {
1083 return io_data_.GetChromeURLDataManagerBackendGetter(); 1083 return io_data_.GetChromeURLDataManagerBackendGetter();
1084 } 1084 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698