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

Side by Side Diff: chrome/browser/printing/cloud_print/cloud_print_url.cc

Issue 12340111: Introduce //components/user_prefs, use to eliminate c/b/prefs dependency in Autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pure merge of LKGR Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 const char kLearnMoreURL[] = 25 const char kLearnMoreURL[] =
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 GURL CloudPrintURL::GetCloudPrintLearnMoreURL() { 100 GURL CloudPrintURL::GetCloudPrintLearnMoreURL() {
101 GURL cloud_print_learn_more_url(kLearnMoreURL); 101 GURL cloud_print_learn_more_url(kLearnMoreURL);
102 return cloud_print_learn_more_url; 102 return cloud_print_learn_more_url;
103 } 103 }
104 104
105 GURL CloudPrintURL::GetCloudPrintTestPageURL() { 105 GURL CloudPrintURL::GetCloudPrintTestPageURL() {
106 GURL cloud_print_learn_more_url(kTestPageURL); 106 GURL cloud_print_learn_more_url(kTestPageURL);
107 return cloud_print_learn_more_url; 107 return cloud_print_learn_more_url;
108 } 108 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698