diff options
author | kalman <kalman@chromium.org> | 2015-07-22 10:41:51 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-22 17:42:40 +0000 |
commit | 47451623f615a4905eed5719a424f599b72b57a3 (patch) | |
tree | 38c2d7e3e7b0396b449a5e4e087d2bad8fca17bf /extensions/shell/browser | |
parent | c0354cfdb7546036c8ea0b3a09995c6ce1692d48 (diff) | |
download | chromium_src-47451623f615a4905eed5719a424f599b72b57a3.zip chromium_src-47451623f615a4905eed5719a424f599b72b57a3.tar.gz chromium_src-47451623f615a4905eed5719a424f599b72b57a3.tar.bz2 |
Final batch adding real histogram values for extension events.
BUG=503402
R=rdevlin.cronin@chromium.org, asvitkine@chromium.org
Review URL: https://codereview.chromium.org/1236493004
Cr-Commit-Position: refs/heads/master@{#339905}
Diffstat (limited to 'extensions/shell/browser')
-rw-r--r-- | extensions/shell/browser/shell_extensions_browser_client.cc | 9 | ||||
-rw-r--r-- | extensions/shell/browser/shell_extensions_browser_client.h | 3 |
2 files changed, 6 insertions, 6 deletions
diff --git a/extensions/shell/browser/shell_extensions_browser_client.cc b/extensions/shell/browser/shell_extensions_browser_client.cc index 7a14a93..df0f872 100644 --- a/extensions/shell/browser/shell_extensions_browser_client.cc +++ b/extensions/shell/browser/shell_extensions_browser_client.cc @@ -202,20 +202,19 @@ ShellExtensionsBrowserClient::GetComponentExtensionResourceManager() { } void ShellExtensionsBrowserClient::BroadcastEventToRenderers( + events::HistogramValue histogram_value, const std::string& event_name, scoped_ptr<base::ListValue> args) { if (!BrowserThread::CurrentlyOn(BrowserThread::UI)) { BrowserThread::PostTask( - BrowserThread::UI, - FROM_HERE, + BrowserThread::UI, FROM_HERE, base::Bind(&ShellExtensionsBrowserClient::BroadcastEventToRenderers, - base::Unretained(this), - event_name, + base::Unretained(this), histogram_value, event_name, base::Passed(&args))); return; } - scoped_ptr<Event> event(new Event(events::UNKNOWN, event_name, args.Pass())); + scoped_ptr<Event> event(new Event(histogram_value, event_name, args.Pass())); EventRouter::Get(browser_context_)->BroadcastEvent(event.Pass()); } diff --git a/extensions/shell/browser/shell_extensions_browser_client.h b/extensions/shell/browser/shell_extensions_browser_client.h index 24ca6d9..9995d73 100644 --- a/extensions/shell/browser/shell_extensions_browser_client.h +++ b/extensions/shell/browser/shell_extensions_browser_client.h @@ -79,7 +79,8 @@ class ShellExtensionsBrowserClient : public ExtensionsBrowserClient { content::BrowserContext* context) const override; const ComponentExtensionResourceManager* GetComponentExtensionResourceManager() override; - void BroadcastEventToRenderers(const std::string& event_name, + void BroadcastEventToRenderers(events::HistogramValue histogram_value, + const std::string& event_name, scoped_ptr<base::ListValue> args) override; net::NetLog* GetNetLog() override; ExtensionCache* GetExtensionCache() override; |