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

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

Issue 6475011: Implemented policy to disable plugin finder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. Created 9 years, 10 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/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 "base/synchronization/waitable_event.h" 8 #include "base/synchronization/waitable_event.h"
9 #include "chrome/browser/google/google_url_tracker.h" 9 #include "chrome/browser/google/google_url_tracker.h"
10 #include "chrome/browser/prefs/pref_service.h" 10 #include "chrome/browser/prefs/pref_service.h"
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 } 173 }
174 174
175 DownloadStatusUpdater* TestingBrowserProcess::download_status_updater() { 175 DownloadStatusUpdater* TestingBrowserProcess::download_status_updater() {
176 return NULL; 176 return NULL;
177 } 177 }
178 178
179 base::WaitableEvent* TestingBrowserProcess::shutdown_event() { 179 base::WaitableEvent* TestingBrowserProcess::shutdown_event() {
180 return shutdown_event_.get(); 180 return shutdown_event_.get();
181 } 181 }
182 182
183 bool TestingBrowserProcess::plugin_finder_disabled() const {
184 return false;
185 }
186
183 bool TestingBrowserProcess::have_inspector_files() const { 187 bool TestingBrowserProcess::have_inspector_files() const {
184 return true; 188 return true;
185 } 189 }
186 190
187 ChromeNetLog* TestingBrowserProcess::net_log() { 191 ChromeNetLog* TestingBrowserProcess::net_log() {
188 return NULL; 192 return NULL;
189 } 193 }
190 194
191 void TestingBrowserProcess::SetPrefService(PrefService* pref_service) { 195 void TestingBrowserProcess::SetPrefService(PrefService* pref_service) {
192 pref_service_ = pref_service; 196 pref_service_ = pref_service;
(...skipping 19 matching lines...) Expand all
212 216
213 ScopedTestingBrowserProcess::~ScopedTestingBrowserProcess() { 217 ScopedTestingBrowserProcess::~ScopedTestingBrowserProcess() {
214 DCHECK_EQ(browser_process_.get(), g_browser_process); 218 DCHECK_EQ(browser_process_.get(), g_browser_process);
215 219
216 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. 220 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062.
217 // After the transition is over, we should just 221 // After the transition is over, we should just
218 // reset |g_browser_process| to NULL. 222 // reset |g_browser_process| to NULL.
219 browser_process_.reset(); 223 browser_process_.reset();
220 g_browser_process = new TestingBrowserProcess(); 224 g_browser_process = new TestingBrowserProcess();
221 } 225 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698