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

Side by Side Diff: chrome/browser/ui/webui/options/personal_options_handler.cc

Issue 8334030: Merge search engines sync data type with Preferences. Sync the default search provider. Add some ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Merge to TOT and fixed additional conflicts from rsimha. Created 9 years, 1 month 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) 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 localized_strings->SetString("syncpasswords", 185 localized_strings->SetString("syncpasswords",
186 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_PASSWORDS)); 186 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_PASSWORDS));
187 localized_strings->SetString("syncextensions", 187 localized_strings->SetString("syncextensions",
188 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_EXTENSIONS)); 188 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_EXTENSIONS));
189 localized_strings->SetString("syncautofill", 189 localized_strings->SetString("syncautofill",
190 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_AUTOFILL)); 190 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_AUTOFILL));
191 localized_strings->SetString("syncthemes", 191 localized_strings->SetString("syncthemes",
192 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_THEMES)); 192 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_THEMES));
193 localized_strings->SetString("syncapps", 193 localized_strings->SetString("syncapps",
194 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_APPS)); 194 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_APPS));
195 localized_strings->SetString("syncsearchengines",
196 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_SEARCH_ENGINES));
197 localized_strings->SetString("syncsessions", 195 localized_strings->SetString("syncsessions",
198 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_TABS)); 196 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_TABS));
199 197
200 #if defined(OS_CHROMEOS) 198 #if defined(OS_CHROMEOS)
201 localized_strings->SetString("account", 199 localized_strings->SetString("account",
202 l10n_util::GetStringUTF16(IDS_OPTIONS_PERSONAL_ACCOUNT_GROUP_NAME)); 200 l10n_util::GetStringUTF16(IDS_OPTIONS_PERSONAL_ACCOUNT_GROUP_NAME));
203 localized_strings->SetString("enableScreenlock", 201 localized_strings->SetString("enableScreenlock",
204 l10n_util::GetStringUTF16(IDS_OPTIONS_ENABLE_SCREENLOCKER_CHECKBOX)); 202 l10n_util::GetStringUTF16(IDS_OPTIONS_ENABLE_SCREENLOCKER_CHECKBOX));
205 localized_strings->SetString("changePicture", 203 localized_strings->SetString("changePicture",
206 l10n_util::GetStringUTF16(IDS_OPTIONS_CHANGE_PICTURE)); 204 l10n_util::GetStringUTF16(IDS_OPTIONS_CHANGE_PICTURE));
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 profile_info_list.Append(profile_value); 417 profile_info_list.Append(profile_value);
420 } 418 }
421 419
422 web_ui_->CallJavascriptFunction("PersonalOptions.setProfilesInfo", 420 web_ui_->CallJavascriptFunction("PersonalOptions.setProfilesInfo",
423 profile_info_list); 421 profile_info_list);
424 } 422 }
425 423
426 void PersonalOptionsHandler::CreateProfile(const ListValue* args) { 424 void PersonalOptionsHandler::CreateProfile(const ListValue* args) {
427 ProfileManager::CreateMultiProfileAsync(); 425 ProfileManager::CreateMultiProfileAsync();
428 } 426 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/ntp/ntp_resource_cache.cc ('k') | chrome/browser/ui/webui/sync_setup_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698