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

Unified Diff: chrome/browser/update_client/chrome_update_query_params_delegate.cc

Issue 803313003: Rename omaha_client and similar tokens to update_client in all contexts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: rebase to master Created 5 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: chrome/browser/update_client/chrome_update_query_params_delegate.cc
diff --git a/chrome/browser/omaha_client/chrome_omaha_query_params_delegate.cc b/chrome/browser/update_client/chrome_update_query_params_delegate.cc
similarity index 69%
rename from chrome/browser/omaha_client/chrome_omaha_query_params_delegate.cc
rename to chrome/browser/update_client/chrome_update_query_params_delegate.cc
index ef326180bc7cabb4f7a6131f2488345207f950fb..fdb8038c25e746ab7368262ffbe6e72a952ffe88 100644
--- a/chrome/browser/omaha_client/chrome_omaha_query_params_delegate.cc
+++ b/chrome/browser/update_client/chrome_update_query_params_delegate.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/omaha_client/chrome_omaha_query_params_delegate.h"
+#include "chrome/browser/update_client/chrome_update_query_params_delegate.h"
#include "base/lazy_instance.h"
#include "base/strings/stringprintf.h"
@@ -17,31 +17,31 @@ const char kBeta[] = "beta";
const char kDev[] = "dev";
const char kCanary[] = "canary";
-base::LazyInstance<ChromeOmahaQueryParamsDelegate> g_delegate =
+base::LazyInstance<ChromeUpdateQueryParamsDelegate> g_delegate =
LAZY_INSTANCE_INITIALIZER;
} // namespace
-ChromeOmahaQueryParamsDelegate::ChromeOmahaQueryParamsDelegate() {
+ChromeUpdateQueryParamsDelegate::ChromeUpdateQueryParamsDelegate() {
}
-ChromeOmahaQueryParamsDelegate::~ChromeOmahaQueryParamsDelegate() {
+ChromeUpdateQueryParamsDelegate::~ChromeUpdateQueryParamsDelegate() {
}
// static
-ChromeOmahaQueryParamsDelegate* ChromeOmahaQueryParamsDelegate::GetInstance() {
+ChromeUpdateQueryParamsDelegate*
+ChromeUpdateQueryParamsDelegate::GetInstance() {
return g_delegate.Pointer();
}
-std::string ChromeOmahaQueryParamsDelegate::GetExtraParams() {
+std::string ChromeUpdateQueryParamsDelegate::GetExtraParams() {
return base::StringPrintf("&prodchannel=%s&prodversion=%s&lang=%s",
GetChannelString(),
- chrome::VersionInfo().Version().c_str(),
- GetLang());
+ chrome::VersionInfo().Version().c_str(), GetLang());
}
// static
-const char* ChromeOmahaQueryParamsDelegate::GetChannelString() {
+const char* ChromeUpdateQueryParamsDelegate::GetChannelString() {
switch (chrome::VersionInfo::GetChannel()) {
case chrome::VersionInfo::CHANNEL_STABLE:
return kStable;
@@ -63,6 +63,6 @@ const char* ChromeOmahaQueryParamsDelegate::GetChannelString() {
}
// static
-const char* ChromeOmahaQueryParamsDelegate::GetLang() {
+const char* ChromeUpdateQueryParamsDelegate::GetLang() {
return g_browser_process->GetApplicationLocale().c_str();
}

Powered by Google App Engine
This is Rietveld 408576698