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

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

Issue 8200017: [Multi Profile] Add "Delete this user" button for singleton profiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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) 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 google_util::StringAppendGoogleLocaleParam(chrome::kSyncLearnMoreURL)); 87 google_util::StringAppendGoogleLocaleParam(chrome::kSyncLearnMoreURL));
88 88
89 localized_strings->SetString("profiles", 89 localized_strings->SetString("profiles",
90 l10n_util::GetStringUTF16(IDS_PROFILES_OPTIONS_GROUP_NAME)); 90 l10n_util::GetStringUTF16(IDS_PROFILES_OPTIONS_GROUP_NAME));
91 localized_strings->SetString("profilesCreate", 91 localized_strings->SetString("profilesCreate",
92 l10n_util::GetStringUTF16(IDS_PROFILES_CREATE_BUTTON_LABEL)); 92 l10n_util::GetStringUTF16(IDS_PROFILES_CREATE_BUTTON_LABEL));
93 localized_strings->SetString("profilesManage", 93 localized_strings->SetString("profilesManage",
94 l10n_util::GetStringUTF16(IDS_PROFILES_MANAGE_BUTTON_LABEL)); 94 l10n_util::GetStringUTF16(IDS_PROFILES_MANAGE_BUTTON_LABEL));
95 localized_strings->SetString("profilesDelete", 95 localized_strings->SetString("profilesDelete",
96 l10n_util::GetStringUTF16(IDS_PROFILES_DELETE_BUTTON_LABEL)); 96 l10n_util::GetStringUTF16(IDS_PROFILES_DELETE_BUTTON_LABEL));
97 localized_strings->SetString("profilesDeleteSingle",
98 l10n_util::GetStringUTF16(IDS_PROFILES_DELETE_SINGLE_BUTTON_LABEL));
97 localized_strings->SetString("profilesListItemCurrent", 99 localized_strings->SetString("profilesListItemCurrent",
98 l10n_util::GetStringUTF16(IDS_PROFILES_LIST_ITEM_CURRENT)); 100 l10n_util::GetStringUTF16(IDS_PROFILES_LIST_ITEM_CURRENT));
99 localized_strings->SetString("profilesSingleUser", 101 localized_strings->SetString("profilesSingleUser",
100 l10n_util::GetStringFUTF16(IDS_PROFILES_SINGLE_USER_MESSAGE, 102 l10n_util::GetStringFUTF16(IDS_PROFILES_SINGLE_USER_MESSAGE,
101 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME))); 103 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)));
102 104
103 localized_strings->SetString("passwords", 105 localized_strings->SetString("passwords",
104 l10n_util::GetStringUTF16(IDS_OPTIONS_PASSWORDS_GROUP_NAME)); 106 l10n_util::GetStringUTF16(IDS_OPTIONS_PASSWORDS_GROUP_NAME));
105 localized_strings->SetString("passwordsAskToSave", 107 localized_strings->SetString("passwordsAskToSave",
106 l10n_util::GetStringUTF16(IDS_OPTIONS_PASSWORDS_ASKTOSAVE)); 108 l10n_util::GetStringUTF16(IDS_OPTIONS_PASSWORDS_ASKTOSAVE));
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 profile_info_list.Append(profile_value); 403 profile_info_list.Append(profile_value);
402 } 404 }
403 405
404 web_ui_->CallJavascriptFunction("PersonalOptions.setProfilesInfo", 406 web_ui_->CallJavascriptFunction("PersonalOptions.setProfilesInfo",
405 profile_info_list); 407 profile_info_list);
406 } 408 }
407 409
408 void PersonalOptionsHandler::CreateProfile(const ListValue* args) { 410 void PersonalOptionsHandler::CreateProfile(const ListValue* args) {
409 ProfileManager::CreateMultiProfileAsync(); 411 ProfileManager::CreateMultiProfileAsync();
410 } 412 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698