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

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

Issue 1651203002: Update components for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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/search_engines/desktop_search_win.h" 5 #include "components/search_engines/desktop_search_win.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/prefs/pref_service.h"
11 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
12 #include "components/pref_registry/pref_registry_syncable.h" 11 #include "components/pref_registry/pref_registry_syncable.h"
12 #include "components/prefs/pref_service.h"
13 #include "components/search_engines/prepopulated_engines.h" 13 #include "components/search_engines/prepopulated_engines.h"
14 #include "components/search_engines/template_url.h" 14 #include "components/search_engines/template_url.h"
15 #include "components/search_engines/template_url_prepopulate_data.h" 15 #include "components/search_engines/template_url_prepopulate_data.h"
16 #include "net/base/url_util.h" 16 #include "net/base/url_util.h"
17 17
18 namespace prefs { 18 namespace prefs {
19 const char kWindowsDesktopSearchRedirectionPref[] = 19 const char kWindowsDesktopSearchRedirectionPref[] =
20 "windows_desktop_search_redirection"; 20 "windows_desktop_search_redirection";
21 } // namespace prefs 21 } // namespace prefs
22 22
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 if (base::EqualsCaseInsensitiveASCII(it.GetKey(), kBingSourceQueryKey)) { 64 if (base::EqualsCaseInsensitiveASCII(it.GetKey(), kBingSourceQueryKey)) {
65 const std::string source = it.GetValue(); 65 const std::string source = it.GetValue();
66 if (source == kBingSourceDesktopText || source == kBingSourceDesktopVoice) 66 if (source == kBingSourceDesktopText || source == kBingSourceDesktopVoice)
67 return true; 67 return true;
68 } 68 }
69 } 69 }
70 70
71 search_terms->clear(); 71 search_terms->clear();
72 return false; 72 return false;
73 } 73 }
OLDNEW
« no previous file with comments | « components/search_engines/default_search_pref_migration.cc ('k') | components/search_engines/template_url_prepopulate_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698