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

Side by Side Diff: chrome/browser/signin/signin_promo.cc

Issue 24649002: Clean up a few more unused globals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: thestig comment Created 7 years, 2 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/signin/signin_promo.h" 5 #include "chrome/browser/signin/signin_promo.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 26 matching lines...) Expand all
37 #include "grit/theme_resources.h" 37 #include "grit/theme_resources.h"
38 #include "net/base/escape.h" 38 #include "net/base/escape.h"
39 #include "net/base/network_change_notifier.h" 39 #include "net/base/network_change_notifier.h"
40 #include "net/base/url_util.h" 40 #include "net/base/url_util.h"
41 #include "ui/base/l10n/l10n_util.h" 41 #include "ui/base/l10n/l10n_util.h"
42 42
43 using content::WebContents; 43 using content::WebContents;
44 44
45 namespace { 45 namespace {
46 46
47 const char kStringsJsFile[] = "strings.js";
48 const char kSignInPromoJsFile[] = "sync_promo.js";
49
50 const char kSignInPromoQueryKeyAutoClose[] = "auto_close"; 47 const char kSignInPromoQueryKeyAutoClose[] = "auto_close";
51 const char kSignInPromoQueryKeyContinue[] = "continue"; 48 const char kSignInPromoQueryKeyContinue[] = "continue";
52 const char kSignInPromoQueryKeySource[] = "source"; 49 const char kSignInPromoQueryKeySource[] = "source";
53 50
54 // Gaia cannot support about:blank as a continue URL, so using a hosted blank 51 // Gaia cannot support about:blank as a continue URL, so using a hosted blank
55 // page instead. 52 // page instead.
56 const char kSignInLandingUrlPrefix[] = 53 const char kSignInLandingUrlPrefix[] =
57 "https://www.google.com/intl/%s/chrome/blank.html"; 54 "https://www.google.com/intl/%s/chrome/blank.html";
58 55
59 // The maximum number of times we want to show the sign in promo at startup. 56 // The maximum number of times we want to show the sign in promo at startup.
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 prefs::kSignInPromoShowOnFirstRunAllowed, 260 prefs::kSignInPromoShowOnFirstRunAllowed,
264 true, 261 true,
265 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 262 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
266 registry->RegisterBooleanPref( 263 registry->RegisterBooleanPref(
267 prefs::kSignInPromoShowNTPBubble, 264 prefs::kSignInPromoShowNTPBubble,
268 false, 265 false,
269 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 266 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
270 } 267 }
271 268
272 } // namespace signin 269 } // namespace signin
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698