| OLD | NEW |
| 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/ui/webui/options/personal_options_handler.h" | 5 #include "chrome/browser/ui/webui/options/personal_options_handler.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 l10n_util::GetStringUTF16(IDS_THEMES_GALLERY_URL)); | 142 l10n_util::GetStringUTF16(IDS_THEMES_GALLERY_URL)); |
| 143 | 143 |
| 144 #if defined(TOOLKIT_GTK) | 144 #if defined(TOOLKIT_GTK) |
| 145 localized_strings->SetString("appearance", | 145 localized_strings->SetString("appearance", |
| 146 l10n_util::GetStringUTF16(IDS_APPEARANCE_GROUP_NAME)); | 146 l10n_util::GetStringUTF16(IDS_APPEARANCE_GROUP_NAME)); |
| 147 localized_strings->SetString("themesGTKButton", | 147 localized_strings->SetString("themesGTKButton", |
| 148 l10n_util::GetStringUTF16(IDS_THEMES_GTK_BUTTON)); | 148 l10n_util::GetStringUTF16(IDS_THEMES_GTK_BUTTON)); |
| 149 localized_strings->SetString("themesSetClassic", | 149 localized_strings->SetString("themesSetClassic", |
| 150 l10n_util::GetStringUTF16(IDS_THEMES_SET_CLASSIC)); | 150 l10n_util::GetStringUTF16(IDS_THEMES_SET_CLASSIC)); |
| 151 localized_strings->SetString("showWindowDecorations", | 151 localized_strings->SetString("showWindowDecorations", |
| 152 l10n_util::GetStringUTF16(IDS_SHOW_WINDOW_DECORATIONS_RADIO)); | 152 l10n_util::GetStringUTF16(IDS_SHOW_WINDOW_DECORATIONS)); |
| 153 localized_strings->SetString("hideWindowDecorations", | 153 localized_strings->SetString("hideWindowDecorations", |
| 154 l10n_util::GetStringUTF16(IDS_HIDE_WINDOW_DECORATIONS_RADIO)); | 154 l10n_util::GetStringUTF16(IDS_HIDE_WINDOW_DECORATIONS)); |
| 155 #else | 155 #else |
| 156 localized_strings->SetString("themes", | 156 localized_strings->SetString("themes", |
| 157 l10n_util::GetStringUTF16(IDS_THEMES_GROUP_NAME)); | 157 l10n_util::GetStringUTF16(IDS_THEMES_GROUP_NAME)); |
| 158 localized_strings->SetString("themesReset", | 158 localized_strings->SetString("themesReset", |
| 159 l10n_util::GetStringUTF16(IDS_THEMES_RESET_BUTTON)); | 159 l10n_util::GetStringUTF16(IDS_THEMES_RESET_BUTTON)); |
| 160 #endif | 160 #endif |
| 161 | 161 |
| 162 // Sync select control. | 162 // Sync select control. |
| 163 ListValue* sync_select_list = new ListValue; | 163 ListValue* sync_select_list = new ListValue; |
| 164 ListValue* datatypes = new ListValue; | 164 ListValue* datatypes = new ListValue; |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 profile_info_list.Append(profile_value); | 434 profile_info_list.Append(profile_value); |
| 435 } | 435 } |
| 436 | 436 |
| 437 web_ui()->CallJavascriptFunction("PersonalOptions.setProfilesInfo", | 437 web_ui()->CallJavascriptFunction("PersonalOptions.setProfilesInfo", |
| 438 profile_info_list); | 438 profile_info_list); |
| 439 } | 439 } |
| 440 | 440 |
| 441 void PersonalOptionsHandler::CreateProfile(const ListValue* args) { | 441 void PersonalOptionsHandler::CreateProfile(const ListValue* args) { |
| 442 ProfileManager::CreateMultiProfileAsync(); | 442 ProfileManager::CreateMultiProfileAsync(); |
| 443 } | 443 } |
| OLD | NEW |