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

Unified Diff: chrome/browser/extensions/tab_helper.cc

Issue 2422963002: Remove FOR_EACH_OBSERVER macro usage in chrome/browser/extensions (Closed)
Patch Set: extensions Created 4 years, 2 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
« no previous file with comments | « chrome/browser/extensions/install_tracker.cc ('k') | chrome/browser/extensions/window_controller_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/tab_helper.cc
diff --git a/chrome/browser/extensions/tab_helper.cc b/chrome/browser/extensions/tab_helper.cc
index 8fdfb7b411a46f105a2629b81a5818a9c1a24895..999fddd39b6d0b656553ce60aa99d8c836696e55 100644
--- a/chrome/browser/extensions/tab_helper.cc
+++ b/chrome/browser/extensions/tab_helper.cc
@@ -524,10 +524,8 @@ void TabHelper::OnContentScriptsExecuting(
content::RenderFrameHost* host,
const ScriptExecutionObserver::ExecutingScriptsMap& executing_scripts_map,
const GURL& on_url) {
- FOR_EACH_OBSERVER(
- ScriptExecutionObserver,
- script_execution_observers_,
- OnScriptsExecuted(web_contents(), executing_scripts_map, on_url));
+ for (auto& observer : script_execution_observers_)
+ observer.OnScriptsExecuted(web_contents(), executing_scripts_map, on_url);
}
const Extension* TabHelper::GetExtension(const ExtensionId& extension_app_id) {
« no previous file with comments | « chrome/browser/extensions/install_tracker.cc ('k') | chrome/browser/extensions/window_controller_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698