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

Unified Diff: components/cloud_devices/common/cloud_devices_urls.cc

Issue 258623004: Fixed url to manage specific cloud printers. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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/cloud_devices/common/cloud_devices_urls.cc
diff --git a/components/cloud_devices/common/cloud_devices_urls.cc b/components/cloud_devices/common/cloud_devices_urls.cc
index 76454292e71d37def6119cf248baa1c66e509bf0..33f6acc3185134f0ee0a2ecd8aaa1ef503a58db3 100644
--- a/components/cloud_devices/common/cloud_devices_urls.cc
+++ b/components/cloud_devices/common/cloud_devices_urls.cc
@@ -85,7 +85,7 @@ GURL GetCloudPrintEnableURL(const std::string& proxy_id) {
return url;
}
-GURL GetCloudPrintEnableURLWithSignin(const std::string& proxy_id) {
+GURL GetCloudPrintEnableWithSigninURL(const std::string& proxy_id) {
GURL url(GaiaUrls::GetInstance()->service_login_url());
url = net::AppendQueryParameter(url, "service", "cloudprint");
url = net::AppendQueryParameter(url, "sarp", "1");
@@ -93,6 +93,13 @@ GURL GetCloudPrintEnableURLWithSignin(const std::string& proxy_id) {
return net::AppendQueryParameter(url, "continue", continue_str);
}
+GURL GetCloudPrintManageDeviceURL(const std::string& device_id) {
+ std::string ref = "printers/" + device_id;
+ GURL::Replacements replacements;
+ replacements.SetRefStr(ref);
+ return GetCloudPrintURL().ReplaceComponents(replacements);
+}
+
GURL GetCloudDevicesURL() {
const CommandLine* command_line = CommandLine::ForCurrentProcess();
GURL cloud_print_url(
« no previous file with comments | « components/cloud_devices/common/cloud_devices_urls.h ('k') | components/cloud_devices/common/cloud_devices_urls_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698