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

Side by Side Diff: chrome/browser/prefs/pref_set_observer.cc

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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/prefs/pref_set_observer.h" 5 #include "chrome/browser/prefs/pref_set_observer.h"
6 6
7 #include "chrome/common/pref_names.h" 7 #include "chrome/common/pref_names.h"
8 #include "content/common/notification_type.h" 8 #include "content/common/content_notification_types.h"
9 9
10 PrefSetObserver::PrefSetObserver(PrefService* pref_service, 10 PrefSetObserver::PrefSetObserver(PrefService* pref_service,
11 NotificationObserver* observer) 11 NotificationObserver* observer)
12 : pref_service_(pref_service), 12 : pref_service_(pref_service),
13 observer_(observer) { 13 observer_(observer) {
14 registrar_.Init(pref_service); 14 registrar_.Init(pref_service);
15 } 15 }
16 16
17 PrefSetObserver::~PrefSetObserver() {} 17 PrefSetObserver::~PrefSetObserver() {}
18 18
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 pref_set->AddPref(prefs::kDefaultSearchProviderKeyword); 62 pref_set->AddPref(prefs::kDefaultSearchProviderKeyword);
63 pref_set->AddPref(prefs::kDefaultSearchProviderSearchURL); 63 pref_set->AddPref(prefs::kDefaultSearchProviderSearchURL);
64 pref_set->AddPref(prefs::kDefaultSearchProviderSuggestURL); 64 pref_set->AddPref(prefs::kDefaultSearchProviderSuggestURL);
65 pref_set->AddPref(prefs::kDefaultSearchProviderIconURL); 65 pref_set->AddPref(prefs::kDefaultSearchProviderIconURL);
66 pref_set->AddPref(prefs::kDefaultSearchProviderInstantURL); 66 pref_set->AddPref(prefs::kDefaultSearchProviderInstantURL);
67 pref_set->AddPref(prefs::kDefaultSearchProviderEncodings); 67 pref_set->AddPref(prefs::kDefaultSearchProviderEncodings);
68 68
69 return pref_set; 69 return pref_set;
70 } 70 }
71 71
72 void PrefSetObserver::Observe(NotificationType type, 72 void PrefSetObserver::Observe(int type,
73 const NotificationSource& source, 73 const NotificationSource& source,
74 const NotificationDetails& details) { 74 const NotificationDetails& details) {
75 if (observer_) 75 if (observer_)
76 observer_->Observe(type, source, details); 76 observer_->Observe(type, source, details);
77 } 77 }
OLDNEW
« no previous file with comments | « chrome/browser/prefs/pref_set_observer.h ('k') | chrome/browser/prefs/pref_set_observer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698