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

Side by Side Diff: components/search_engines/default_search_manager.h

Issue 1551543002: Fix wrong comments about two search engine related variables (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef COMPONENTS_SEARCH_ENGINES_DEFAULT_SEARCH_MANAGER_H_ 5 #ifndef COMPONENTS_SEARCH_ENGINES_DEFAULT_SEARCH_MANAGER_H_
6 #define COMPONENTS_SEARCH_ENGINES_DEFAULT_SEARCH_MANAGER_H_ 6 #define COMPONENTS_SEARCH_ENGINES_DEFAULT_SEARCH_MANAGER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 PrefService* pref_service_; 140 PrefService* pref_service_;
141 const ObserverCallback change_observer_; 141 const ObserverCallback change_observer_;
142 PrefChangeRegistrar pref_change_registrar_; 142 PrefChangeRegistrar pref_change_registrar_;
143 143
144 // Default search engine provided by pre-populated data or by the 144 // Default search engine provided by pre-populated data or by the
145 // |kSearchProviderOverrides| pref. This will be used when no other default 145 // |kSearchProviderOverrides| pref. This will be used when no other default
146 // search engine has been selected. 146 // search engine has been selected.
147 scoped_ptr<TemplateURLData> fallback_default_search_; 147 scoped_ptr<TemplateURLData> fallback_default_search_;
148 148
149 // Default search engine provided by prefs (either user prefs or policy
150 // prefs). This will be null if no value was set in the pref store.
151 scoped_ptr<TemplateURLData> extension_default_search_;
152
153 // Default search engine provided by extension (usings Settings Override API). 149 // Default search engine provided by extension (usings Settings Override API).
154 // This will be null if there are no extensions installed which provide 150 // This will be null if there are no extensions installed which provide
155 // default search engines. 151 // default search engines.
152 scoped_ptr<TemplateURLData> extension_default_search_;
153
154 // Default search engine provided by prefs (either user prefs or policy
155 // prefs). This will be null if no value was set in the pref store.
156 scoped_ptr<TemplateURLData> prefs_default_search_; 156 scoped_ptr<TemplateURLData> prefs_default_search_;
157 157
158 // True if the default search is currently enforced by policy. 158 // True if the default search is currently enforced by policy.
159 bool default_search_controlled_by_policy_; 159 bool default_search_controlled_by_policy_;
160 160
161 DISALLOW_COPY_AND_ASSIGN(DefaultSearchManager); 161 DISALLOW_COPY_AND_ASSIGN(DefaultSearchManager);
162 }; 162 };
163 163
164 #endif // COMPONENTS_SEARCH_ENGINES_DEFAULT_SEARCH_MANAGER_H_ 164 #endif // COMPONENTS_SEARCH_ENGINES_DEFAULT_SEARCH_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698