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

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

Issue 7824041: Update base/timer.h code to pass through Location from call sites. (reland) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: touch Created 9 years, 3 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) 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/command_line.h" 7 #include "base/command_line.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/environment.h" 9 #include "base/environment.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 created_password_store_(false), 305 created_password_store_(false),
306 created_download_manager_(false), 306 created_download_manager_(false),
307 start_time_(Time::Now()), 307 start_time_(Time::Now()),
308 #if defined(OS_WIN) 308 #if defined(OS_WIN)
309 checked_instant_promo_(false), 309 checked_instant_promo_(false),
310 #endif 310 #endif
311 delegate_(delegate) { 311 delegate_(delegate) {
312 DCHECK(!path.empty()) << "Using an empty path will attempt to write " << 312 DCHECK(!path.empty()) << "Using an empty path will attempt to write " <<
313 "profile files to the root directory!"; 313 "profile files to the root directory!";
314 314
315 create_session_service_timer_.Start( 315 create_session_service_timer_.Start(FROM_HERE,
316 TimeDelta::FromMilliseconds(kCreateSessionServiceDelayMS), this, 316 TimeDelta::FromMilliseconds(kCreateSessionServiceDelayMS), this,
317 &ProfileImpl::EnsureSessionServiceCreated); 317 &ProfileImpl::EnsureSessionServiceCreated);
318 318
319 if (delegate_) { 319 if (delegate_) {
320 prefs_.reset(PrefService::CreatePrefService( 320 prefs_.reset(PrefService::CreatePrefService(
321 GetPrefFilePath(), 321 GetPrefFilePath(),
322 new ExtensionPrefStore(GetExtensionPrefValueMap(), false), 322 new ExtensionPrefStore(GetExtensionPrefValueMap(), false),
323 true)); 323 true));
324 // Wait for the notifcation that prefs has been loaded (successfully or 324 // Wait for the notifcation that prefs has been loaded (successfully or
325 // not). 325 // not).
(...skipping 1410 matching lines...) Expand 10 before | Expand all | Expand 10 after
1736 #endif 1736 #endif
1737 } 1737 }
1738 return prerender_manager_.get(); 1738 return prerender_manager_.get();
1739 } 1739 }
1740 1740
1741 SpellCheckProfile* ProfileImpl::GetSpellCheckProfile() { 1741 SpellCheckProfile* ProfileImpl::GetSpellCheckProfile() {
1742 if (!spellcheck_profile_.get()) 1742 if (!spellcheck_profile_.get())
1743 spellcheck_profile_.reset(new SpellCheckProfile()); 1743 spellcheck_profile_.reset(new SpellCheckProfile());
1744 return spellcheck_profile_.get(); 1744 return spellcheck_profile_.get();
1745 } 1745 }
OLDNEW
« no previous file with comments | « chrome/browser/process_singleton_linux.cc ('k') | chrome/browser/renderer_host/safe_browsing_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698