| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/printing/cloud_print/cloud_print_url.h" | 5 #include "chrome/browser/printing/cloud_print/cloud_print_url.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/stringprintf.h" | 9 #include "base/stringprintf.h" |
| 10 #include "chrome/browser/google/google_util.h" | 10 #include "chrome/browser/google/google_util.h" |
| 11 #include "chrome/browser/prefs/pref_service.h" | 11 #include "chrome/browser/prefs/pref_service.h" |
| 12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 13 #include "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
| 14 #include "chrome/common/pref_names.h" | 14 #include "chrome/common/pref_names.h" |
| 15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
| 16 | 16 |
| 17 const char kDefaultCloudPrintServiceURL[] = "https://www.google.com/cloudprint"; | 17 // TODO(msw): Remove sandbox testing URL... |
| 18 const char kDefaultCloudPrintServiceURL[] = "http://cloudprint-nightly.sandbox.g
oogle.com/cloudprint"; |
| 19 //const char kDefaultCloudPrintServiceURL[] = "https://www.google.com/cloudprint
"; |
| 18 const char kDefaultCloudPrintSigninURL[] = | 20 const char kDefaultCloudPrintSigninURL[] = |
| 19 "https://accounts.google.com/ServiceLogin?" | 21 "https://accounts.google.com/ServiceLogin?" |
| 20 "service=cloudprint&continue=https%3A%2F%2Fwww.google.com%2Fcloudprint"; | 22 "service=cloudprint&continue=https%3A%2F%2Fwww.google.com%2Fcloudprint"; |
| 21 | 23 |
| 22 const char kLearnMoreURL[] = | 24 const char kLearnMoreURL[] = |
| 23 "https://www.google.com/support/cloudprint"; | 25 "https://www.google.com/support/cloudprint"; |
| 24 const char kTestPageURL[] = | 26 const char kTestPageURL[] = |
| 25 "http://www.google.com/landing/cloudprint/enable.html?print=true"; | 27 "http://www.google.com/landing/cloudprint/enable.html?print=true"; |
| 26 | 28 |
| 27 void CloudPrintURL::RegisterPreferences() { | 29 void CloudPrintURL::RegisterPreferences() { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 103 |
| 102 GURL CloudPrintURL::GetCloudPrintLearnMoreURL() { | 104 GURL CloudPrintURL::GetCloudPrintLearnMoreURL() { |
| 103 GURL cloud_print_learn_more_url(kLearnMoreURL); | 105 GURL cloud_print_learn_more_url(kLearnMoreURL); |
| 104 return cloud_print_learn_more_url; | 106 return cloud_print_learn_more_url; |
| 105 } | 107 } |
| 106 | 108 |
| 107 GURL CloudPrintURL::GetCloudPrintTestPageURL() { | 109 GURL CloudPrintURL::GetCloudPrintTestPageURL() { |
| 108 GURL cloud_print_learn_more_url(kTestPageURL); | 110 GURL cloud_print_learn_more_url(kTestPageURL); |
| 109 return cloud_print_learn_more_url; | 111 return cloud_print_learn_more_url; |
| 110 } | 112 } |
| OLD | NEW |