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

Side by Side Diff: extensions/browser/test_extensions_browser_client.cc

Issue 1236493004: Final batch adding real histogram values for extension events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments, rebase, dcheck, etc Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/browser/test_extensions_browser_client.h" 5 #include "extensions/browser/test_extensions_browser_client.h"
6 6
7 #include "content/public/browser/browser_context.h" 7 #include "content/public/browser/browser_context.h"
8 #include "extensions/browser/app_sorting.h" 8 #include "extensions/browser/app_sorting.h"
9 #include "extensions/browser/extension_host_delegate.h" 9 #include "extensions/browser/extension_host_delegate.h"
10 #include "extensions/browser/test_runtime_api_delegate.h" 10 #include "extensions/browser/test_runtime_api_delegate.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 content::BrowserContext* context) const { 170 content::BrowserContext* context) const {
171 return scoped_ptr<RuntimeAPIDelegate>(new TestRuntimeAPIDelegate()); 171 return scoped_ptr<RuntimeAPIDelegate>(new TestRuntimeAPIDelegate());
172 } 172 }
173 173
174 const ComponentExtensionResourceManager* 174 const ComponentExtensionResourceManager*
175 TestExtensionsBrowserClient::GetComponentExtensionResourceManager() { 175 TestExtensionsBrowserClient::GetComponentExtensionResourceManager() {
176 return NULL; 176 return NULL;
177 } 177 }
178 178
179 void TestExtensionsBrowserClient::BroadcastEventToRenderers( 179 void TestExtensionsBrowserClient::BroadcastEventToRenderers(
180 events::HistogramValue histogram_value,
180 const std::string& event_name, 181 const std::string& event_name,
181 scoped_ptr<base::ListValue> args) { 182 scoped_ptr<base::ListValue> args) {}
182 }
183 183
184 net::NetLog* TestExtensionsBrowserClient::GetNetLog() { 184 net::NetLog* TestExtensionsBrowserClient::GetNetLog() {
185 return NULL; 185 return NULL;
186 } 186 }
187 187
188 ExtensionCache* TestExtensionsBrowserClient::GetExtensionCache() { 188 ExtensionCache* TestExtensionsBrowserClient::GetExtensionCache() {
189 return extension_cache_.get(); 189 return extension_cache_.get();
190 } 190 }
191 191
192 bool TestExtensionsBrowserClient::IsBackgroundUpdateAllowed() { 192 bool TestExtensionsBrowserClient::IsBackgroundUpdateAllowed() {
193 return true; 193 return true;
194 } 194 }
195 195
196 bool TestExtensionsBrowserClient::IsMinBrowserVersionSupported( 196 bool TestExtensionsBrowserClient::IsMinBrowserVersionSupported(
197 const std::string& min_version) { 197 const std::string& min_version) {
198 return true; 198 return true;
199 } 199 }
200 200
201 ExtensionWebContentsObserver* 201 ExtensionWebContentsObserver*
202 TestExtensionsBrowserClient::GetExtensionWebContentsObserver( 202 TestExtensionsBrowserClient::GetExtensionWebContentsObserver(
203 content::WebContents* web_contents) { 203 content::WebContents* web_contents) {
204 return nullptr; 204 return nullptr;
205 } 205 }
206 206
207 } // namespace extensions 207 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698