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

Side by Side Diff: chrome/browser/dom_ui/options/startup_page_manager_handler.cc

Issue 5685003: DOMUI Prefs: Add a deletable item list type, and use it for startup pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits fixed Created 10 years 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
« no previous file with comments | « no previous file | chrome/browser/resources/options/add_startup_page_overlay.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/dom_ui/options/startup_page_manager_handler.h" 5 #include "chrome/browser/dom_ui/options/startup_page_manager_handler.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "grit/generated_resources.h" 9 #include "grit/generated_resources.h"
10 #include "grit/locale_settings.h" 10 #include "grit/locale_settings.h"
11 11
12 StartupPageManagerHandler::StartupPageManagerHandler() { 12 StartupPageManagerHandler::StartupPageManagerHandler() {
13 } 13 }
14 14
15 StartupPageManagerHandler::~StartupPageManagerHandler() { 15 StartupPageManagerHandler::~StartupPageManagerHandler() {
16 } 16 }
17 17
18 void StartupPageManagerHandler::GetLocalizedValues( 18 void StartupPageManagerHandler::GetLocalizedValues(
19 DictionaryValue* localized_strings) { 19 DictionaryValue* localized_strings) {
20 DCHECK(localized_strings); 20 DCHECK(localized_strings);
21 21
22 localized_strings->SetString("startupAddButton", 22 localized_strings->SetString("startupAddButton",
23 l10n_util::GetStringUTF16(IDS_OPTIONS_STARTUP_ADD_BUTTON)); 23 l10n_util::GetStringUTF16(IDS_OPTIONS_STARTUP_ADD_BUTTON));
24 localized_strings->SetString("startupRemoveButton",
25 l10n_util::GetStringUTF16(IDS_OPTIONS_STARTUP_REMOVE_BUTTON));
26 localized_strings->SetString("startupPageManagerPage", 24 localized_strings->SetString("startupPageManagerPage",
27 l10n_util::GetStringUTF16(IDS_STARTUP_PAGE_SUBPAGE_TITLE)); 25 l10n_util::GetStringUTF16(IDS_STARTUP_PAGE_SUBPAGE_TITLE));
28 localized_strings->SetString("startupManagePages", 26 localized_strings->SetString("startupManagePages",
29 l10n_util::GetStringUTF16(IDS_OPTIONS_STARTUP_MANAGE_BUTTON)); 27 l10n_util::GetStringUTF16(IDS_OPTIONS_STARTUP_MANAGE_BUTTON));
30 } 28 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/options/add_startup_page_overlay.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698