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

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

Issue 8591024: Correct the order of destruction of ProfileImplIOData and ExtensionProcessManager. This was causi... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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 | « chrome/browser/profiles/profile_impl.h ('k') | chrome/browser/ui/browser_close_browsertest.cc » ('j') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 // result in using PasswordStoreX in CreatePasswordStore() below. 209 // result in using PasswordStoreX in CreatePasswordStore() below.
210 PasswordStoreX::RegisterUserPrefs(prefs); 210 PasswordStoreX::RegisterUserPrefs(prefs);
211 #endif 211 #endif
212 } 212 }
213 213
214 ProfileImpl::ProfileImpl(const FilePath& path, 214 ProfileImpl::ProfileImpl(const FilePath& path,
215 Profile::Delegate* delegate) 215 Profile::Delegate* delegate)
216 : path_(path), 216 : path_(path),
217 ALLOW_THIS_IN_INITIALIZER_LIST(visited_link_event_listener_( 217 ALLOW_THIS_IN_INITIALIZER_LIST(visited_link_event_listener_(
218 new VisitedLinkEventListener(this))), 218 new VisitedLinkEventListener(this))),
219 ALLOW_THIS_IN_INITIALIZER_LIST(io_data_(this)),
219 extension_devtools_manager_(NULL), 220 extension_devtools_manager_(NULL),
220 ALLOW_THIS_IN_INITIALIZER_LIST(io_data_(this)),
221 host_content_settings_map_(NULL), 221 host_content_settings_map_(NULL),
222 host_zoom_map_(NULL), 222 host_zoom_map_(NULL),
223 history_service_created_(false), 223 history_service_created_(false),
224 favicon_service_created_(false), 224 favicon_service_created_(false),
225 created_web_data_service_(false), 225 created_web_data_service_(false),
226 created_password_store_(false), 226 created_password_store_(false),
227 start_time_(Time::Now()), 227 start_time_(Time::Now()),
228 #if defined(OS_WIN) 228 #if defined(OS_WIN)
229 checked_instant_promo_(false), 229 checked_instant_promo_(false),
230 #endif 230 #endif
(...skipping 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after
1577 FilePath* cache_path, 1577 FilePath* cache_path,
1578 int* max_size) { 1578 int* max_size) {
1579 DCHECK(cache_path); 1579 DCHECK(cache_path);
1580 DCHECK(max_size); 1580 DCHECK(max_size);
1581 FilePath path(prefs_->GetFilePath(prefs::kDiskCacheDir)); 1581 FilePath path(prefs_->GetFilePath(prefs::kDiskCacheDir));
1582 if (!path.empty()) 1582 if (!path.empty())
1583 *cache_path = path; 1583 *cache_path = path;
1584 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : 1584 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) :
1585 prefs_->GetInteger(prefs::kDiskCacheSize); 1585 prefs_->GetInteger(prefs::kDiskCacheSize);
1586 } 1586 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.h ('k') | chrome/browser/ui/browser_close_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698