OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |