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

Unified Diff: chrome/browser/rlz/rlz.cc

Issue 316963002: Move branding information out of google_util (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for Windows 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: chrome/browser/rlz/rlz.cc
diff --git a/chrome/browser/rlz/rlz.cc b/chrome/browser/rlz/rlz.cc
index 63686b19cc007c78e43f255fa5252ddbee8c6080..748058ef317ee570d73982d3294b6d2b69754e84 100644
--- a/chrome/browser/rlz/rlz.cc
+++ b/chrome/browser/rlz/rlz.cc
@@ -19,6 +19,7 @@
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/chrome_notification_types.h"
+#include "chrome/browser/google/google_brand.h"
#include "chrome/browser/google/google_util.h"
#include "chrome/browser/omnibox/omnibox_log.h"
#include "chrome/browser/prefs/session_startup_pref.h"
@@ -65,7 +66,7 @@ const base::TimeDelta kMaxInitDelay = base::TimeDelta::FromSeconds(200);
const base::TimeDelta kMinInitDelay = base::TimeDelta::FromSeconds(20);
bool IsBrandOrganic(const std::string& brand) {
- return brand.empty() || google_util::IsOrganic(brand);
+ return brand.empty() || google_brand::IsOrganic(brand);
}
void RecordProductEvents(bool first_run,
@@ -291,7 +292,7 @@ bool RLZTracker::Init(bool first_run,
delay = std::min(kMaxInitDelay, std::max(min_init_delay_, delay));
- if (google_util::GetBrand(&brand_) && !IsBrandOrganic(brand_)) {
+ if (google_brand::GetBrand(&brand_) && !IsBrandOrganic(brand_)) {
// Register for notifications from the omnibox so that we can record when
// the user performs a first search.
registrar_.Add(this, chrome::NOTIFICATION_OMNIBOX_OPENED_URL,
@@ -304,7 +305,7 @@ bool RLZTracker::Init(bool first_run,
content::NotificationService::AllSources());
#endif // !defined(OS_IOS)
}
- google_util::GetReactivationBrand(&reactivation_brand_);
+ google_brand::GetReactivationBrand(&reactivation_brand_);
net::URLRequestContextGetter* context_getter =
g_browser_process->system_request_context();
« no previous file with comments | « chrome/browser/profile_resetter/automatic_profile_resetter_delegate_unittest.cc ('k') | chrome/browser/rlz/rlz_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698