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

Side by Side Diff: chrome/browser/content_settings/content_settings_observable_provider.cc

Issue 9159053: Coverity: pass ContentSettingsPattern by const ref (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix MockObserver Created 8 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/content_settings/content_settings_observable_provider.h " 5 #include "chrome/browser/content_settings/content_settings_observable_provider.h "
6 6
7 namespace content_settings { 7 namespace content_settings {
8 8
9 // //////////////////////////////////////////////////////////////////////////// 9 // ////////////////////////////////////////////////////////////////////////////
10 // ObservableProvider 10 // ObservableProvider
(...skipping 11 matching lines...) Expand all
22 22
23 void ObservableProvider::RemoveObserver(Observer* observer) { 23 void ObservableProvider::RemoveObserver(Observer* observer) {
24 observer_list_.RemoveObserver(observer); 24 observer_list_.RemoveObserver(observer);
25 } 25 }
26 26
27 void ObservableProvider::RemoveAllObservers() { 27 void ObservableProvider::RemoveAllObservers() {
28 observer_list_.Clear(); 28 observer_list_.Clear();
29 } 29 }
30 30
31 void ObservableProvider::NotifyObservers( 31 void ObservableProvider::NotifyObservers(
32 ContentSettingsPattern primary_pattern, 32 const ContentSettingsPattern& primary_pattern,
33 ContentSettingsPattern secondary_pattern, 33 const ContentSettingsPattern& secondary_pattern,
34 ContentSettingsType content_type, 34 ContentSettingsType content_type,
35 std::string resource_identifier) { 35 std::string resource_identifier) {
36 FOR_EACH_OBSERVER(Observer, 36 FOR_EACH_OBSERVER(Observer,
37 observer_list_, 37 observer_list_,
38 OnContentSettingChanged( 38 OnContentSettingChanged(
39 primary_pattern, 39 primary_pattern,
40 secondary_pattern, 40 secondary_pattern,
41 content_type, 41 content_type,
42 resource_identifier)); 42 resource_identifier));
43 } 43 }
44 44
45 } // namespace content_settings 45 } // namespace content_settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698