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/policy/browser_policy_connector.h" | 10 #include "chrome/browser/policy/browser_policy_connector.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 } | 110 } |
111 | 111 |
112 ui::Clipboard* TestingBrowserProcess::clipboard() { | 112 ui::Clipboard* TestingBrowserProcess::clipboard() { |
113 if (!clipboard_.get()) { | 113 if (!clipboard_.get()) { |
114 // Note that we need a MessageLoop for the next call to work. | 114 // Note that we need a MessageLoop for the next call to work. |
115 clipboard_.reset(new ui::Clipboard); | 115 clipboard_.reset(new ui::Clipboard); |
116 } | 116 } |
117 return clipboard_.get(); | 117 return clipboard_.get(); |
118 } | 118 } |
119 | 119 |
| 120 ExtensionEventRouterForwarder* |
| 121 TestingBrowserProcess::extension_event_router_forwarder() { |
| 122 return NULL; |
| 123 } |
| 124 |
120 NotificationUIManager* TestingBrowserProcess::notification_ui_manager() { | 125 NotificationUIManager* TestingBrowserProcess::notification_ui_manager() { |
121 return NULL; | 126 return NULL; |
122 } | 127 } |
123 | 128 |
124 GoogleURLTracker* TestingBrowserProcess::google_url_tracker() { | 129 GoogleURLTracker* TestingBrowserProcess::google_url_tracker() { |
125 return google_url_tracker_.get(); | 130 return google_url_tracker_.get(); |
126 } | 131 } |
127 | 132 |
128 IntranetRedirectDetector* TestingBrowserProcess::intranet_redirect_detector() { | 133 IntranetRedirectDetector* TestingBrowserProcess::intranet_redirect_detector() { |
129 return NULL; | 134 return NULL; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 | 222 |
218 ScopedTestingBrowserProcess::~ScopedTestingBrowserProcess() { | 223 ScopedTestingBrowserProcess::~ScopedTestingBrowserProcess() { |
219 DCHECK_EQ(browser_process_.get(), g_browser_process); | 224 DCHECK_EQ(browser_process_.get(), g_browser_process); |
220 | 225 |
221 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. | 226 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. |
222 // After the transition is over, we should just | 227 // After the transition is over, we should just |
223 // reset |g_browser_process| to NULL. | 228 // reset |g_browser_process| to NULL. |
224 browser_process_.reset(); | 229 browser_process_.reset(); |
225 g_browser_process = new TestingBrowserProcess(); | 230 g_browser_process = new TestingBrowserProcess(); |
226 } | 231 } |
OLD | NEW |