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

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

Issue 10407124: Don't force non-session only cookies to be session only cookies, instead delete on shutdown (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 InitHostZoomMap(); 373 InitHostZoomMap();
374 374
375 // Make sure we initialize the ProfileIOData after everything else has been 375 // Make sure we initialize the ProfileIOData after everything else has been
376 // initialized that we might be reading from the IO thread. 376 // initialized that we might be reading from the IO thread.
377 377
378 io_data_.Init(cookie_path, server_bound_cert_path, cache_path, 378 io_data_.Init(cookie_path, server_bound_cert_path, cache_path,
379 cache_max_size, media_cache_path, media_cache_max_size, 379 cache_max_size, media_cache_path, media_cache_max_size,
380 extensions_cookie_path, app_path, predictor_, 380 extensions_cookie_path, app_path, predictor_,
381 g_browser_process->local_state(), 381 g_browser_process->local_state(),
382 g_browser_process->io_thread(), 382 g_browser_process->io_thread(),
383 restore_old_session_cookies); 383 restore_old_session_cookies,
384 GetSpecialStoragePolicy());
384 385
385 ChromePluginServiceFilter::GetInstance()->RegisterResourceContext( 386 ChromePluginServiceFilter::GetInstance()->RegisterResourceContext(
386 PluginPrefs::GetForProfile(this), 387 PluginPrefs::GetForProfile(this),
387 io_data_.GetResourceContextNoInit()); 388 io_data_.GetResourceContextNoInit());
388 389
389 // Delay README creation to not impact startup performance. 390 // Delay README creation to not impact startup performance.
390 BrowserThread::PostDelayedTask( 391 BrowserThread::PostDelayedTask(
391 BrowserThread::FILE, FROM_HERE, 392 BrowserThread::FILE, FROM_HERE,
392 base::Bind(&EnsureReadmeFile, GetPath()), 393 base::Bind(&EnsureReadmeFile, GetPath()),
393 base::TimeDelta::FromMilliseconds(create_readme_delay_ms)); 394 base::TimeDelta::FromMilliseconds(create_readme_delay_ms));
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
1152 if (!path.empty()) 1153 if (!path.empty())
1153 *cache_path = path; 1154 *cache_path = path;
1154 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : 1155 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) :
1155 prefs_->GetInteger(prefs::kDiskCacheSize); 1156 prefs_->GetInteger(prefs::kDiskCacheSize);
1156 } 1157 }
1157 1158
1158 base::Callback<ChromeURLDataManagerBackend*(void)> 1159 base::Callback<ChromeURLDataManagerBackend*(void)>
1159 ProfileImpl::GetChromeURLDataManagerBackendGetter() const { 1160 ProfileImpl::GetChromeURLDataManagerBackendGetter() const {
1160 return io_data_.GetChromeURLDataManagerBackendGetter(); 1161 return io_data_.GetChromeURLDataManagerBackendGetter();
1161 } 1162 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698