From 47451623f615a4905eed5719a424f599b72b57a3 Mon Sep 17 00:00:00 2001 From: kalman Date: Wed, 22 Jul 2015 10:41:51 -0700 Subject: 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} --- extensions/shell/browser/shell_extensions_browser_client.cc | 9 ++++----- extensions/shell/browser/shell_extensions_browser_client.h | 3 ++- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'extensions/shell') 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 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(new Event(events::UNKNOWN, event_name, args.Pass())); + scoped_ptr 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 args) override; net::NetLog* GetNetLog() override; ExtensionCache* GetExtensionCache() override; -- cgit v1.1