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

Side by Side Diff: chrome/browser/dom_ui/browser_options_handler.cc

Issue 2830036: Advanced (Under the Hood) options panel code review (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/dom_ui/browser_options_handler.h"
6
7 #include "app/l10n_util.h"
8 #include "base/basictypes.h"
9 #include "base/values.h"
10 #include "grit/chromium_strings.h"
11 #include "grit/generated_resources.h"
12
13 BrowserOptionsHandler::BrowserOptionsHandler() {
14 }
15
16 BrowserOptionsHandler::~BrowserOptionsHandler() {
17 }
18
19 void BrowserOptionsHandler::GetLocalizedValues(
20 DictionaryValue* localized_strings) {
21 DCHECK(localized_strings);
22 localized_strings->SetString(L"startupGroupName",
23 l10n_util::GetString(IDS_OPTIONS_STARTUP_GROUP_NAME));
24 localized_strings->SetString(L"startupShowDefaultAndNewTab",
25 l10n_util::GetString(IDS_OPTIONS_STARTUP_SHOW_DEFAULT_AND_NEWTAB));
26 localized_strings->SetString(L"startupShowLastSession",
27 l10n_util::GetString(IDS_OPTIONS_STARTUP_SHOW_LAST_SESSION));
28 localized_strings->SetString(L"startupShowPages",
29 l10n_util::GetString(IDS_OPTIONS_STARTUP_SHOW_PAGES));
30 localized_strings->SetString(L"startupAddButton",
31 l10n_util::GetString(IDS_OPTIONS_STARTUP_ADD_BUTTON));
32 localized_strings->SetString(L"startupRemoveButton",
33 l10n_util::GetString(IDS_OPTIONS_STARTUP_REMOVE_BUTTON));
34 localized_strings->SetString(L"startupUseCurrent",
35 l10n_util::GetString(IDS_OPTIONS_STARTUP_USE_CURRENT));
36 localized_strings->SetString(L"homepageGroupName",
37 l10n_util::GetString(IDS_OPTIONS_HOMEPAGE_GROUP_NAME));
38 localized_strings->SetString(L"homepageUseNewTab",
39 l10n_util::GetString(IDS_OPTIONS_HOMEPAGE_USE_NEWTAB));
40 localized_strings->SetString(L"homepageUseURL",
41 l10n_util::GetString(IDS_OPTIONS_HOMEPAGE_USE_URL));
42 localized_strings->SetString(L"homepageShowButton",
43 l10n_util::GetString(IDS_OPTIONS_HOMEPAGE_SHOW_BUTTON));
44 #if defined(OS_MACOSX)
45 localized_strings->SetString(L"toolbarGroupName",
46 l10n_util::GetString(IDS_OPTIONS_TOOLBAR_GROUP_NAME));
47 localized_strings->SetString(L"pageOptionShowButton",
48 l10n_util::GetString(IDS_OPTIONS_PAGE_OPTION_SHOW_BUTTON));
49 #endif
50 localized_strings->SetString(L"defaultSearchGroupName",
51 l10n_util::GetString(IDS_OPTIONS_DEFAULTSEARCH_GROUP_NAME));
52 localized_strings->SetString(L"defaultSearchManageEnginesLink",
53 l10n_util::GetString(IDS_OPTIONS_DEFAULTSEARCH_MANAGE_ENGINES_LINK));
54 localized_strings->SetString(L"defaultBrowserGroupName",
55 l10n_util::GetString(IDS_OPTIONS_DEFAULTBROWSER_GROUP_NAME));
56 localized_strings->SetString(L"defaultBrowserNotDefault",
57 l10n_util::GetStringF(IDS_OPTIONS_DEFAULTBROWSER_NOTDEFAULT,
58 l10n_util::GetString(IDS_PRODUCT_NAME)));
59 localized_strings->SetString(L"defaultBrowserUnknown",
60 l10n_util::GetStringF(IDS_OPTIONS_DEFAULTBROWSER_UNKNOWN,
61 l10n_util::GetString(IDS_PRODUCT_NAME)));
62 localized_strings->SetString(L"defaultBrowserSXS",
63 l10n_util::GetStringF(IDS_OPTIONS_DEFAULTBROWSER_SXS,
64 l10n_util::GetString(IDS_PRODUCT_NAME)));
65 localized_strings->SetString(L"defaultBrowserUseAsDefault",
66 l10n_util::GetStringF(IDS_OPTIONS_DEFAULTBROWSER_USEASDEFAULT,
67 l10n_util::GetString(IDS_PRODUCT_NAME)));
68 }
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/browser_options_handler.h ('k') | chrome/browser/dom_ui/core_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698