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

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

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.h
diff --git a/chrome/browser/update_client/chrome_update_query_params_delegate.h b/chrome/browser/update_client/chrome_update_query_params_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..a90bdc3563a360a535a4173b84e72f39c91315c2
--- /dev/null
+++ b/chrome/browser/update_client/chrome_update_query_params_delegate.h
@@ -0,0 +1,37 @@
+// Copyright 2014 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 CHROME_BROWSER_UPDATE_CLIENT_CHROME_UPDATE_QUERY_PARAMS_DELEGATE_H_
+#define CHROME_BROWSER_UPDATE_CLIENT_CHROME_UPDATE_QUERY_PARAMS_DELEGATE_H_
+
+#include <string>
+
+#include "components/update_client/update_query_params_delegate.h"
+
+class ChromeUpdateQueryParamsDelegate
+ : public update_client::UpdateQueryParamsDelegate {
+ public:
+ ChromeUpdateQueryParamsDelegate();
+ ~ChromeUpdateQueryParamsDelegate() override;
+
+ // Gets the LazyInstance for ChromeUpdateQueryParamsDelegate.
+ static ChromeUpdateQueryParamsDelegate* GetInstance();
+
+ // update_client::UpdateQueryParamsDelegate:
+ std::string GetExtraParams() override;
+
+ // Returns the value we use for the "updaterchannel=" and "prodchannel="
+ // parameters. Possible return values include: "canary", "dev", "beta", and
+ // "stable".
+ static const char* GetChannelString();
+
+ // Returns the language for the present locale. Possible return values are
+ // standard tags for languages, such as "en", "en-US", "de", "fr", "af", etc.
+ static const char* GetLang();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ChromeUpdateQueryParamsDelegate);
+};
+
+#endif // CHROME_BROWSER_UPDATE_CLIENT_CHROME_UPDATE_QUERY_PARAMS_DELEGATE_H_
« no previous file with comments | « chrome/browser/update_client/OWNERS ('k') | chrome/browser/update_client/chrome_update_query_params_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698