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

Side by Side Diff: chrome/browser/search_engines/ui_thread_search_terms_data.cc

Issue 1212163011: Componentize chrome/browser/rlz (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation with gn Created 5 years, 5 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 "chrome/browser/search_engines/ui_thread_search_terms_data.h" 5 #include "chrome/browser/search_engines/ui_thread_search_terms_data.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
(...skipping 10 matching lines...) Expand all
21 #include "chrome/common/chrome_version_info.h" 21 #include "chrome/common/chrome_version_info.h"
22 #include "components/google/core/browser/google_url_tracker.h" 22 #include "components/google/core/browser/google_url_tracker.h"
23 #include "components/google/core/browser/google_util.h" 23 #include "components/google/core/browser/google_util.h"
24 #include "components/omnibox/omnibox_field_trial.h" 24 #include "components/omnibox/omnibox_field_trial.h"
25 #include "components/search/search.h" 25 #include "components/search/search.h"
26 #include "content/public/browser/browser_thread.h" 26 #include "content/public/browser/browser_thread.h"
27 #include "ui/base/device_form_factor.h" 27 #include "ui/base/device_form_factor.h"
28 #include "url/gurl.h" 28 #include "url/gurl.h"
29 29
30 #if defined(ENABLE_RLZ) 30 #if defined(ENABLE_RLZ)
31 #include "chrome/browser/rlz/rlz.h" 31 #include "components/rlz/rlz_tracker.h"
32 #endif 32 #endif
33 33
34 using content::BrowserThread; 34 using content::BrowserThread;
35 35
36 // static 36 // static
37 std::string* UIThreadSearchTermsData::google_base_url_ = NULL; 37 std::string* UIThreadSearchTermsData::google_base_url_ = NULL;
38 38
39 UIThreadSearchTermsData::UIThreadSearchTermsData(Profile* profile) 39 UIThreadSearchTermsData::UIThreadSearchTermsData(Profile* profile)
40 : profile_(profile) { 40 : profile_(profile) {
41 DCHECK(!BrowserThread::IsThreadInitialized(BrowserThread::UI) || 41 DCHECK(!BrowserThread::IsThreadInitialized(BrowserThread::UI) ||
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 if (!modifier.empty()) 186 if (!modifier.empty())
187 version += " " + modifier; 187 version += " " + modifier;
188 return version; 188 return version;
189 } 189 }
190 190
191 // static 191 // static
192 void UIThreadSearchTermsData::SetGoogleBaseURL(const std::string& base_url) { 192 void UIThreadSearchTermsData::SetGoogleBaseURL(const std::string& base_url) {
193 delete google_base_url_; 193 delete google_base_url_;
194 google_base_url_ = base_url.empty() ? NULL : new std::string(base_url); 194 google_base_url_ = base_url.empty() ? NULL : new std::string(base_url);
195 } 195 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698