OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/webui/sync_promo/sync_promo_ui.h" | 5 #include "chrome/browser/ui/sync/sync_promo_ui.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" |
11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
14 #include "chrome/browser/first_run/first_run.h" | 14 #include "chrome/browser/first_run/first_run.h" |
15 #include "chrome/browser/google/google_util.h" | 15 #include "chrome/browser/google/google_util.h" |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 replacements.ClearQuery(); | 266 replacements.ClearQuery(); |
267 const std::string& locale = g_browser_process->GetApplicationLocale(); | 267 const std::string& locale = g_browser_process->GetApplicationLocale(); |
268 return url.ReplaceComponents(replacements) == | 268 return url.ReplaceComponents(replacements) == |
269 GURL(base::StringPrintf(kSyncLandingUrlPrefix, locale.c_str())); | 269 GURL(base::StringPrintf(kSyncLandingUrlPrefix, locale.c_str())); |
270 } | 270 } |
271 | 271 |
272 // static | 272 // static |
273 void SyncPromoUI::ForceWebBasedSigninFlowForTesting(bool force) { | 273 void SyncPromoUI::ForceWebBasedSigninFlowForTesting(bool force) { |
274 g_force_web_based_signin_flow = force; | 274 g_force_web_based_signin_flow = force; |
275 } | 275 } |
OLD | NEW |