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

Unified Diff: components/search_engines/desktop_search_win.h

Issue 1598553003: Implement the Windows desktop search redirection feature. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix build errors due to prefs being moved in components Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: components/search_engines/desktop_search_win.h
diff --git a/components/search_engines/desktop_search_win.h b/components/search_engines/desktop_search_win.h
deleted file mode 100644
index 162e95f286c72c81721c7ef2b4b95813cc2eeb3a..0000000000000000000000000000000000000000
--- a/components/search_engines/desktop_search_win.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_SEARCH_ENGINES_DESKTOP_SEARCH_WIN_H_
-#define COMPONENTS_SEARCH_ENGINES_DESKTOP_SEARCH_WIN_H_
-
-#include "base/feature_list.h"
-#include "base/strings/string16.h"
-
-class GURL;
-class PrefService;
-class SearchTermsData;
-
-namespace user_prefs {
-class PrefRegistrySyncable;
-}
-
-namespace prefs {
-// Name of the Windows desktop search redirection preference.
-extern const char kWindowsDesktopSearchRedirectionPref[];
-}
-
-// Windows desktop search redirection feature. This is exposed in the header
-// file so that it can be referenced from about_flags.cc.
-extern const base::Feature kWindowsDesktopSearchRedirectionFeature;
-
-// Registers the Windows desktop search redirection preference into |registry|.
-void RegisterWindowsDesktopSearchRedirectionPref(
- user_prefs::PrefRegistrySyncable* registry);
-
-// Indicates whether Windows desktop searches should be redirected to the
-// default search engine. This is only true when both the preference and the
-// feature are enabled. The preference value is read from |pref_service|.
-bool ShouldRedirectWindowsDesktopSearchToDefaultSearchEngine(
- PrefService* pref_service);
-
-// Detects whether a URL comes from a Windows Desktop search. If so, puts the
-// search terms in |search_terms| and returns true.
-bool DetectWindowsDesktopSearch(const GURL& url,
- const SearchTermsData& search_terms_data,
- base::string16* search_terms);
-
-#endif // COMPONENTS_SEARCH_ENGINES_DESKTOP_SEARCH_WIN_H_
« no previous file with comments | « components/search_engines/desktop_search_utils_unittest.cc ('k') | components/search_engines/desktop_search_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698