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

Side by Side Diff: chrome/browser/chromeos/dom_ui/accounts_options_handler.cc

Issue 3143009: Reenabled ChromeOS system setting for timezone selection.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/dom_ui/accounts_options_handler.h" 5 #include "chrome/browser/chromeos/dom_ui/accounts_options_handler.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "base/json/json_reader.h" 8 #include "base/json/json_reader.h"
9 #include "base/scoped_ptr.h" 9 #include "base/scoped_ptr.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/browser/chromeos/cros_settings_provider_user.h"
11 #include "grit/generated_resources.h" 12 #include "grit/generated_resources.h"
12 13
13 namespace chromeos { 14 namespace chromeos {
14 15
15 AccountsOptionsHandler::AccountsOptionsHandler() { 16 AccountsOptionsHandler::AccountsOptionsHandler()
17 : CrosOptionsPageUIHandler(new UserCrosSettingsProvider()) {
16 } 18 }
17 19
18 AccountsOptionsHandler::~AccountsOptionsHandler() { 20 AccountsOptionsHandler::~AccountsOptionsHandler() {
19 } 21 }
20 22
21 void AccountsOptionsHandler::GetLocalizedValues( 23 void AccountsOptionsHandler::GetLocalizedValues(
22 DictionaryValue* localized_strings) { 24 DictionaryValue* localized_strings) {
23 DCHECK(localized_strings); 25 DCHECK(localized_strings);
24 localized_strings->SetString("accountsPage", l10n_util::GetStringUTF16( 26 localized_strings->SetString("accountsPage", l10n_util::GetStringUTF16(
25 IDS_OPTIONS_ACCOUNTS_TAB_LABEL)); 27 IDS_OPTIONS_ACCOUNTS_TAB_LABEL));
26 28
27 localized_strings->SetString("allow_BWSI", l10n_util::GetStringUTF16( 29 localized_strings->SetString("allow_BWSI", l10n_util::GetStringUTF16(
28 IDS_OPTIONS_ACCOUNTS_ALLOW_BWSI_DESCRIPTION)); 30 IDS_OPTIONS_ACCOUNTS_ALLOW_BWSI_DESCRIPTION));
29 localized_strings->SetString("allow_guest",l10n_util::GetStringUTF16( 31 localized_strings->SetString("allow_guest",l10n_util::GetStringUTF16(
30 IDS_OPTIONS_ACCOUNTS_ALLOW_GUEST_DESCRIPTION)); 32 IDS_OPTIONS_ACCOUNTS_ALLOW_GUEST_DESCRIPTION));
31 localized_strings->SetString("show_user_on_signin",l10n_util::GetStringUTF16( 33 localized_strings->SetString("show_user_on_signin",l10n_util::GetStringUTF16(
32 IDS_OPTIONS_ACCOUNTS_SHOW_USER_NAMES_ON_SINGIN_DESCRIPTION)); 34 IDS_OPTIONS_ACCOUNTS_SHOW_USER_NAMES_ON_SINGIN_DESCRIPTION));
33 localized_strings->SetString("username_edit_hint",l10n_util::GetStringUTF16( 35 localized_strings->SetString("username_edit_hint",l10n_util::GetStringUTF16(
34 IDS_OPTIONS_ACCOUNTS_USERNAME_EDIT_HINT)); 36 IDS_OPTIONS_ACCOUNTS_USERNAME_EDIT_HINT));
35 localized_strings->SetString("username_format",l10n_util::GetStringUTF16( 37 localized_strings->SetString("username_format",l10n_util::GetStringUTF16(
36 IDS_OPTIONS_ACCOUNTS_USERNAME_FORMAT)); 38 IDS_OPTIONS_ACCOUNTS_USERNAME_FORMAT));
37 localized_strings->SetString("add_users",l10n_util::GetStringUTF16( 39 localized_strings->SetString("add_users",l10n_util::GetStringUTF16(
38 IDS_OPTIONS_ACCOUNTS_ADD_USERS)); 40 IDS_OPTIONS_ACCOUNTS_ADD_USERS));
39 } 41 }
40 42
41 } // namespace chromeos 43 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698