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

Unified Diff: components/search_engines/template_url_prepopulate_data.cc

Issue 355853002: Componentize TemplateURLPrepopulateData, DefaultSearchManager and DefaultSearchPolicyHandler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missing comma in gyp Created 6 years, 6 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/template_url_prepopulate_data.cc
diff --git a/chrome/browser/search_engines/template_url_prepopulate_data.cc b/components/search_engines/template_url_prepopulate_data.cc
similarity index 98%
rename from chrome/browser/search_engines/template_url_prepopulate_data.cc
rename to components/search_engines/template_url_prepopulate_data.cc
index 355654daefceb3403c8d7fd932c319f2380f2253..36e26b0703a544e3fd719461264f41f29639ec61 100644
--- a/chrome/browser/search_engines/template_url_prepopulate_data.cc
+++ b/components/search_engines/template_url_prepopulate_data.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/search_engines/template_url_prepopulate_data.h"
+#include "components/search_engines/template_url_prepopulate_data.h"
#if defined(OS_POSIX) && !defined(OS_MACOSX)
#include <locale.h>
@@ -20,11 +20,7 @@
#include "components/search_engines/prepopulated_engines.h"
#include "components/search_engines/search_engines_pref_names.h"
#include "components/search_engines/template_url.h"
-#include "content/public/browser/browser_thread.h"
-#include "grit/generated_resources.h"
-#include "grit/theme_resources.h"
#include "net/base/registry_controlled_domains/registry_controlled_domain.h"
-#include "ui/base/l10n/l10n_util.h"
#include "url/gurl.h"
#if defined(OS_WIN)
@@ -1266,11 +1262,6 @@ scoped_ptr<TemplateURLData> GetPrepopulatedDefaultSearch(PrefService* prefs) {
SearchEngineType GetEngineType(const TemplateURL& url,
const SearchTermsData& search_terms_data) {
- // Restricted to UI thread because ReplaceSearchTerms() is so restricted.
- using content::BrowserThread;
- DCHECK(!BrowserThread::IsThreadInitialized(BrowserThread::UI) ||
- BrowserThread::CurrentlyOn(BrowserThread::UI));
-
// By calling ReplaceSearchTerms, we ensure that even TemplateURLs whose URLs
// can't be directly inspected (e.g. due to containing {google:baseURL}) can
// be converted to GURLs we can look at.
« chrome/chrome_browser.gypi ('K') | « components/search_engines/template_url_prepopulate_data.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698