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

Side by Side Diff: components/favicon/core/favicon_driver.cc

Issue 2440303002: Remove usage of FOR_EACH_OBSERVER macro in components/ (Closed)
Patch Set: remove superfluous return Created 4 years, 1 month 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/favicon/core/favicon_driver.h" 5 #include "components/favicon/core/favicon_driver.h"
6 6
7 namespace favicon { 7 namespace favicon {
8 8
9 void FaviconDriver::AddObserver(FaviconDriverObserver* observer) { 9 void FaviconDriver::AddObserver(FaviconDriverObserver* observer) {
10 observer_list_.AddObserver(observer); 10 observer_list_.AddObserver(observer);
11 } 11 }
12 12
13 void FaviconDriver::RemoveObserver(FaviconDriverObserver* observer) { 13 void FaviconDriver::RemoveObserver(FaviconDriverObserver* observer) {
14 observer_list_.RemoveObserver(observer); 14 observer_list_.RemoveObserver(observer);
15 } 15 }
16 16
17 FaviconDriver::FaviconDriver() { 17 FaviconDriver::FaviconDriver() {
18 } 18 }
19 19
20 FaviconDriver::~FaviconDriver() { 20 FaviconDriver::~FaviconDriver() {
21 } 21 }
22 22
23 void FaviconDriver::NotifyFaviconUpdatedObservers( 23 void FaviconDriver::NotifyFaviconUpdatedObservers(
24 FaviconDriverObserver::NotificationIconType notification_icon_type, 24 FaviconDriverObserver::NotificationIconType notification_icon_type,
25 const GURL& icon_url, 25 const GURL& icon_url,
26 bool icon_url_changed, 26 bool icon_url_changed,
27 const gfx::Image& image) { 27 const gfx::Image& image) {
28 FOR_EACH_OBSERVER(FaviconDriverObserver, observer_list_, 28 for (FaviconDriverObserver& observer : observer_list_) {
29 OnFaviconUpdated(this, notification_icon_type, icon_url, 29 observer.OnFaviconUpdated(this, notification_icon_type, icon_url,
30 icon_url_changed, image)); 30 icon_url_changed, image);
31 }
31 } 32 }
32 33
33 } // namespace favicon 34 } // namespace favicon
OLDNEW
« no previous file with comments | « components/exo/wm_helper.cc ('k') | components/filesystem/public/cpp/prefs/filesystem_json_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698