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

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

Issue 8851007: WIP / Do not commit (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/plugin_test.cc ('k') | chrome/browser/repost_form_warning_controller.h » ('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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 extension_service_->InitEventRouters(); 472 extension_service_->InitEventRouters();
473 } 473 }
474 } 474 }
475 } 475 }
476 476
477 void ProfileImpl::InitPromoResources() { 477 void ProfileImpl::InitPromoResources() {
478 if (promo_resource_service_) 478 if (promo_resource_service_)
479 return; 479 return;
480 480
481 promo_resource_service_ = new PromoResourceService(this); 481 promo_resource_service_ = new PromoResourceService(this);
482 promo_resource_service_->StartAfterDelay(); 482 promo_resource_service_->StartAfterDelay(false);
483 } 483 }
484 484
485 void ProfileImpl::InitRegisteredProtocolHandlers() { 485 void ProfileImpl::InitRegisteredProtocolHandlers() {
486 if (protocol_handler_registry_) 486 if (protocol_handler_registry_)
487 return; 487 return;
488 protocol_handler_registry_ = new ProtocolHandlerRegistry(this, 488 protocol_handler_registry_ = new ProtocolHandlerRegistry(this,
489 new ProtocolHandlerRegistry::Delegate()); 489 new ProtocolHandlerRegistry::Delegate());
490 protocol_handler_registry_->Load(); 490 protocol_handler_registry_->Load();
491 } 491 }
492 492
(...skipping 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after
1616 FilePath* cache_path, 1616 FilePath* cache_path,
1617 int* max_size) { 1617 int* max_size) {
1618 DCHECK(cache_path); 1618 DCHECK(cache_path);
1619 DCHECK(max_size); 1619 DCHECK(max_size);
1620 FilePath path(prefs_->GetFilePath(prefs::kDiskCacheDir)); 1620 FilePath path(prefs_->GetFilePath(prefs::kDiskCacheDir));
1621 if (!path.empty()) 1621 if (!path.empty())
1622 *cache_path = path; 1622 *cache_path = path;
1623 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : 1623 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) :
1624 prefs_->GetInteger(prefs::kDiskCacheSize); 1624 prefs_->GetInteger(prefs::kDiskCacheSize);
1625 } 1625 }
OLDNEW
« no previous file with comments | « chrome/browser/plugin_test.cc ('k') | chrome/browser/repost_form_warning_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698