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

Side by Side Diff: chrome/test/testing_browser_process.cc

Issue 7147015: Move user cloud policy to BrowserProcess (was 6979011) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit_test include breakage Created 9 years, 5 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 | « chrome/chrome_tests.gypi ('k') | no next file » | 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/test/testing_browser_process.h" 5 #include "chrome/test/testing_browser_process.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "chrome/browser/google/google_url_tracker.h" 8 #include "chrome/browser/google/google_url_tracker.h"
9 #include "chrome/browser/notifications/notification_ui_manager.h" 9 #include "chrome/browser/notifications/notification_ui_manager.h"
10 #include "chrome/browser/policy/browser_policy_connector.h" 10 #include "chrome/browser/policy/browser_policy_connector.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 void TestingBrowserProcess::SetProfileManager(ProfileManager* profile_manager) { 70 void TestingBrowserProcess::SetProfileManager(ProfileManager* profile_manager) {
71 profile_manager_.reset(profile_manager); 71 profile_manager_.reset(profile_manager);
72 } 72 }
73 73
74 PrefService* TestingBrowserProcess::local_state() { 74 PrefService* TestingBrowserProcess::local_state() {
75 return local_state_; 75 return local_state_;
76 } 76 }
77 77
78 policy::BrowserPolicyConnector* 78 policy::BrowserPolicyConnector*
79 TestingBrowserProcess::browser_policy_connector() { 79 TestingBrowserProcess::browser_policy_connector() {
80 if (!browser_policy_connector_.get()) 80 if (!browser_policy_connector_.get()) {
81 browser_policy_connector_.reset( 81 browser_policy_connector_.reset(
82 policy::BrowserPolicyConnector::CreateForTests()); 82 policy::BrowserPolicyConnector::CreateForTests());
83 }
83 return browser_policy_connector_.get(); 84 return browser_policy_connector_.get();
84 } 85 }
85 86
86 IconManager* TestingBrowserProcess::icon_manager() { 87 IconManager* TestingBrowserProcess::icon_manager() {
87 return NULL; 88 return NULL;
88 } 89 }
89 90
90 ThumbnailGenerator* TestingBrowserProcess::GetThumbnailGenerator() { 91 ThumbnailGenerator* TestingBrowserProcess::GetThumbnailGenerator() {
91 return NULL; 92 return NULL;
92 } 93 }
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 261
261 ScopedTestingBrowserProcess::~ScopedTestingBrowserProcess() { 262 ScopedTestingBrowserProcess::~ScopedTestingBrowserProcess() {
262 DCHECK_EQ(browser_process_.get(), g_browser_process); 263 DCHECK_EQ(browser_process_.get(), g_browser_process);
263 264
264 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. 265 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062.
265 // After the transition is over, we should just 266 // After the transition is over, we should just
266 // reset |g_browser_process| to NULL. 267 // reset |g_browser_process| to NULL.
267 browser_process_.reset(); 268 browser_process_.reset();
268 g_browser_process = new TestingBrowserProcess(); 269 g_browser_process = new TestingBrowserProcess();
269 } 270 }
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698