OLD | NEW |
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/notifications/notification_ui_manager.h" | 10 #include "chrome/browser/notifications/notification_ui_manager.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 } | 57 } |
58 | 58 |
59 base::Thread* TestingBrowserProcess::db_thread() { | 59 base::Thread* TestingBrowserProcess::db_thread() { |
60 return NULL; | 60 return NULL; |
61 } | 61 } |
62 | 62 |
63 base::Thread* TestingBrowserProcess::cache_thread() { | 63 base::Thread* TestingBrowserProcess::cache_thread() { |
64 return NULL; | 64 return NULL; |
65 } | 65 } |
66 | 66 |
67 base::Thread* TestingBrowserProcess::gpu_thread() { | |
68 return NULL; | |
69 } | |
70 | |
71 WatchDogThread* TestingBrowserProcess::watchdog_thread() { | 67 WatchDogThread* TestingBrowserProcess::watchdog_thread() { |
72 return NULL; | 68 return NULL; |
73 } | 69 } |
74 | 70 |
75 #if defined(OS_CHROMEOS) | 71 #if defined(OS_CHROMEOS) |
76 base::Thread* TestingBrowserProcess::web_socket_proxy_thread() { | 72 base::Thread* TestingBrowserProcess::web_socket_proxy_thread() { |
77 return NULL; | 73 return NULL; |
78 } | 74 } |
79 #endif | 75 #endif |
80 | 76 |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 | 263 |
268 ScopedTestingBrowserProcess::~ScopedTestingBrowserProcess() { | 264 ScopedTestingBrowserProcess::~ScopedTestingBrowserProcess() { |
269 DCHECK_EQ(browser_process_.get(), g_browser_process); | 265 DCHECK_EQ(browser_process_.get(), g_browser_process); |
270 | 266 |
271 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. | 267 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. |
272 // After the transition is over, we should just | 268 // After the transition is over, we should just |
273 // reset |g_browser_process| to NULL. | 269 // reset |g_browser_process| to NULL. |
274 browser_process_.reset(); | 270 browser_process_.reset(); |
275 g_browser_process = new TestingBrowserProcess(); | 271 g_browser_process = new TestingBrowserProcess(); |
276 } | 272 } |
OLD | NEW |