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

Unified Diff: chrome/browser/extensions/api/extension_action/extension_action_api.cc

Issue 2858643002: PS - Filtering activeTab URL (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/extension_action/extension_action_api.cc
diff --git a/chrome/browser/extensions/api/extension_action/extension_action_api.cc b/chrome/browser/extensions/api/extension_action/extension_action_api.cc
index 037f8b309b607f4fe7be86f3a094ea970e2ca0ed..210e187d37c8b6a182e8100f2c1e1ebaf414d6c7 100644
--- a/chrome/browser/extensions/api/extension_action/extension_action_api.cc
+++ b/chrome/browser/extensions/api/extension_action/extension_action_api.cc
@@ -225,7 +225,11 @@ void ExtensionActionAPI::DispatchExtensionActionClicked(
if (event_name) {
std::unique_ptr<base::ListValue> args(new base::ListValue());
- args->Append(ExtensionTabUtil::CreateTabObject(web_contents)->ToValue());
+ std::unique_ptr<api::tabs::Tab> tab =
+ ExtensionTabUtil::CreateTabObject(web_contents);
+ ExtensionTabUtil::PlatformSpecificFiltering(extension_action.extension_id(),
Ivan Šandrk 2017/05/03 13:00:50 Should I test this part maybe?
Devlin 2017/05/03 15:14:15 Actually, I think that what we should be doing is
Ivan Šandrk 2017/05/03 17:52:46 Right, thanks for the suggestion. Done.
+ tab.get());
+ args->Append(tab->ToValue());
DispatchEventToExtension(web_contents->GetBrowserContext(),
extension_action.extension_id(), histogram_value,

Powered by Google App Engine
This is Rietveld 408576698