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

Side by Side Diff: chrome/browser/chromeos/login/startup_utils.cc

Issue 1866813002: Remove StartupUtils::IsWebviewSigninEnabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 4 years, 8 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
OLDNEW
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/chromeos/login/startup_utils.h" 5 #include "chrome/browser/chromeos/login/startup_utils.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 // static 179 // static
180 std::string StartupUtils::GetInitialLocale() { 180 std::string StartupUtils::GetInitialLocale() {
181 std::string locale = 181 std::string locale =
182 g_browser_process->local_state()->GetString(prefs::kInitialLocale); 182 g_browser_process->local_state()->GetString(prefs::kInitialLocale);
183 if (!l10n_util::IsValidLocaleSyntax(locale)) 183 if (!l10n_util::IsValidLocaleSyntax(locale))
184 locale = "en-US"; 184 locale = "en-US";
185 return locale; 185 return locale;
186 } 186 }
187 187
188 // static 188 // static
189 bool StartupUtils::IsWebviewSigninEnabled() {
190 return true;
191 }
192
193 // static
194 void StartupUtils::SetInitialLocale(const std::string& locale) { 189 void StartupUtils::SetInitialLocale(const std::string& locale) {
195 if (l10n_util::IsValidLocaleSyntax(locale)) 190 if (l10n_util::IsValidLocaleSyntax(locale))
196 SaveStringPreferenceForced(prefs::kInitialLocale, locale); 191 SaveStringPreferenceForced(prefs::kInitialLocale, locale);
197 else 192 else
198 NOTREACHED(); 193 NOTREACHED();
199 } 194 }
200 195
201 } // namespace chromeos 196 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698