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

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

Issue 2290503003: Remove use of stl_util in search_engines. (Closed)
Patch Set: fix broken test Created 4 years, 3 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
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 #include "components/search_engines/default_search_manager.h" 5 #include "components/search_engines/default_search_manager.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
11 #include <utility> 11 #include <utility>
12 12
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/bind_helpers.h" 14 #include "base/bind_helpers.h"
15 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
16 #include "base/i18n/case_conversion.h" 16 #include "base/i18n/case_conversion.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/stl_util.h"
19 #include "base/strings/string_number_conversions.h" 18 #include "base/strings/string_number_conversions.h"
20 #include "base/strings/string_split.h" 19 #include "base/strings/string_split.h"
21 #include "base/strings/string_util.h" 20 #include "base/strings/string_util.h"
22 #include "base/strings/utf_string_conversions.h" 21 #include "base/strings/utf_string_conversions.h"
23 #include "base/time/time.h" 22 #include "base/time/time.h"
24 #include "components/pref_registry/pref_registry_syncable.h" 23 #include "components/pref_registry/pref_registry_syncable.h"
25 #include "components/prefs/pref_service.h" 24 #include "components/prefs/pref_service.h"
26 #include "components/prefs/pref_value_map.h" 25 #include "components/prefs/pref_value_map.h"
27 #include "components/search_engines/search_engines_pref_names.h" 26 #include "components/search_engines/search_engines_pref_names.h"
28 #include "components/search_engines/template_url_data.h" 27 #include "components/search_engines/template_url_data.h"
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 MergePrefsDataWithPrepopulated(); 410 MergePrefsDataWithPrepopulated();
412 } 411 }
413 412
414 void DefaultSearchManager::NotifyObserver() { 413 void DefaultSearchManager::NotifyObserver() {
415 if (!change_observer_.is_null()) { 414 if (!change_observer_.is_null()) {
416 Source source = FROM_FALLBACK; 415 Source source = FROM_FALLBACK;
417 TemplateURLData* data = GetDefaultSearchEngine(&source); 416 TemplateURLData* data = GetDefaultSearchEngine(&source);
418 change_observer_.Run(data, source); 417 change_observer_.Run(data, source);
419 } 418 }
420 } 419 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698