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

Side by Side Diff: chrome/browser/browser_process_impl.cc

Issue 10823208: Reverting this as it causes browser tests on the Linux ChromiumOS builder to fail. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 | chrome/browser/chromeos/login/login_utils.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) 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/browser_process_impl.h" 5 #include "chrome/browser/browser_process_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 // Init() should not reenter this function. Updating 434 // Init() should not reenter this function. Updating
435 // |created_browser_policy_connector_| here makes reentering hit the DCHECK. 435 // |created_browser_policy_connector_| here makes reentering hit the DCHECK.
436 created_browser_policy_connector_ = true; 436 created_browser_policy_connector_ = true;
437 } 437 }
438 return browser_policy_connector_.get(); 438 return browser_policy_connector_.get();
439 } 439 }
440 440
441 policy::PolicyService* BrowserProcessImpl::policy_service() { 441 policy::PolicyService* BrowserProcessImpl::policy_service() {
442 if (!policy_service_.get()) { 442 if (!policy_service_.get()) {
443 #if defined(ENABLE_CONFIGURATION_POLICY) 443 #if defined(ENABLE_CONFIGURATION_POLICY)
444 policy_service_ = browser_policy_connector()->CreatePolicyService(NULL); 444 policy_service_.reset(
445 browser_policy_connector()->CreatePolicyService(NULL));
445 #else 446 #else
446 policy_service_.reset(new policy::PolicyServiceStub()); 447 policy_service_.reset(new policy::PolicyServiceStub());
447 #endif 448 #endif
448 } 449 }
449 return policy_service_.get(); 450 return policy_service_.get();
450 } 451 }
451 452
452 IconManager* BrowserProcessImpl::icon_manager() { 453 IconManager* BrowserProcessImpl::icon_manager() {
453 DCHECK(CalledOnValidThread()); 454 DCHECK(CalledOnValidThread());
454 if (!created_icon_manager_) 455 if (!created_icon_manager_)
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 } 919 }
919 920
920 void BrowserProcessImpl::OnAutoupdateTimer() { 921 void BrowserProcessImpl::OnAutoupdateTimer() {
921 if (CanAutorestartForUpdate()) { 922 if (CanAutorestartForUpdate()) {
922 DLOG(WARNING) << "Detected update. Restarting browser."; 923 DLOG(WARNING) << "Detected update. Restarting browser.";
923 RestartBackgroundInstance(); 924 RestartBackgroundInstance();
924 } 925 }
925 } 926 }
926 927
927 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 928 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/login_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698