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/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
10 #include "base/stringprintf.h" | 10 #include "base/stringprintf.h" |
11 #include "chrome/browser/google/google_util.h" | 11 #include "chrome/browser/google/google_util.h" |
12 #include "chrome/browser/prefs/pref_registry_syncable.h" | |
13 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
15 #include "chrome/common/pref_names.h" | 14 #include "chrome/common/pref_names.h" |
| 15 #include "components/user_prefs/pref_registry_syncable.h" |
16 #include "google_apis/gaia/gaia_urls.h" | 16 #include "google_apis/gaia/gaia_urls.h" |
17 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
18 #include "net/base/escape.h" | 18 #include "net/base/escape.h" |
19 | 19 |
20 // Url must not be matched by "urls" section of | 20 // Url must not be matched by "urls" section of |
21 // cloud_print_app/manifest.json. If it's matched, print driver dialog will | 21 // cloud_print_app/manifest.json. If it's matched, print driver dialog will |
22 // open sign-in page in separate window. | 22 // open sign-in page in separate window. |
23 const char kDefaultCloudPrintServiceURL[] = "https://www.google.com/cloudprint"; | 23 const char kDefaultCloudPrintServiceURL[] = "https://www.google.com/cloudprint"; |
24 | 24 |
25 // Continue url must be any url matched by "urls" section of | 25 // Continue url must be any url matched by "urls" section of |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 107 |
108 GURL CloudPrintURL::GetCloudPrintLearnMoreURL() { | 108 GURL CloudPrintURL::GetCloudPrintLearnMoreURL() { |
109 GURL cloud_print_learn_more_url(kLearnMoreURL); | 109 GURL cloud_print_learn_more_url(kLearnMoreURL); |
110 return cloud_print_learn_more_url; | 110 return cloud_print_learn_more_url; |
111 } | 111 } |
112 | 112 |
113 GURL CloudPrintURL::GetCloudPrintTestPageURL() { | 113 GURL CloudPrintURL::GetCloudPrintTestPageURL() { |
114 GURL cloud_print_learn_more_url(kTestPageURL); | 114 GURL cloud_print_learn_more_url(kTestPageURL); |
115 return cloud_print_learn_more_url; | 115 return cloud_print_learn_more_url; |
116 } | 116 } |
OLD | NEW |