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

Side by Side Diff: chrome/browser/ui/webui/options2/search_engine_manager_handler2.cc

Issue 10032020: [settings] remove unused strings bindings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/options2/search_engine_manager_handler2.h" 5 #include "chrome/browser/ui/webui/options2/search_engine_manager_handler2.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/string_number_conversions.h" 8 #include "base/string_number_conversions.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 RegisterTitle(localized_strings, "searchEngineManagerPage", 59 RegisterTitle(localized_strings, "searchEngineManagerPage",
60 IDS_SEARCH_ENGINES_EDITOR_WINDOW_TITLE); 60 IDS_SEARCH_ENGINES_EDITOR_WINDOW_TITLE);
61 localized_strings->SetString("defaultSearchEngineListTitle", 61 localized_strings->SetString("defaultSearchEngineListTitle",
62 l10n_util::GetStringUTF16(IDS_SEARCH_ENGINES_EDITOR_MAIN_SEPARATOR)); 62 l10n_util::GetStringUTF16(IDS_SEARCH_ENGINES_EDITOR_MAIN_SEPARATOR));
63 localized_strings->SetString("otherSearchEngineListTitle", 63 localized_strings->SetString("otherSearchEngineListTitle",
64 l10n_util::GetStringUTF16(IDS_SEARCH_ENGINES_EDITOR_OTHER_SEPARATOR)); 64 l10n_util::GetStringUTF16(IDS_SEARCH_ENGINES_EDITOR_OTHER_SEPARATOR));
65 localized_strings->SetString("extensionKeywordsListTitle", 65 localized_strings->SetString("extensionKeywordsListTitle",
66 l10n_util::GetStringUTF16( 66 l10n_util::GetStringUTF16(
67 IDS_SEARCH_ENGINES_EDITOR_EXTENSIONS_SEPARATOR)); 67 IDS_SEARCH_ENGINES_EDITOR_EXTENSIONS_SEPARATOR));
68 localized_strings->SetString("manageExtensionsLinkText",
69 l10n_util::GetStringUTF16(IDS_MANAGE_EXTENSIONS));
70 localized_strings->SetString("searchEngineTableNameHeader",
71 l10n_util::GetStringUTF16(IDS_SEARCH_ENGINES_EDITOR_DESCRIPTION_COLUMN));
72 localized_strings->SetString("searchEngineTableKeywordHeader",
73 l10n_util::GetStringUTF16(IDS_SEARCH_ENGINES_EDITOR_KEYWORD_COLUMN));
74 localized_strings->SetString("searchEngineTableURLHeader",
75 l10n_util::GetStringUTF16(IDS_SEARCH_ENGINES_EDITOR_EDIT_BUTTON));
76 localized_strings->SetString("makeDefaultSearchEngineButton", 68 localized_strings->SetString("makeDefaultSearchEngineButton",
77 l10n_util::GetStringUTF16(IDS_SEARCH_ENGINES_EDITOR_MAKE_DEFAULT_BUTTON)); 69 l10n_util::GetStringUTF16(IDS_SEARCH_ENGINES_EDITOR_MAKE_DEFAULT_BUTTON));
78 localized_strings->SetString("searchEngineTableNamePlaceholder", 70 localized_strings->SetString("searchEngineTableNamePlaceholder",
79 l10n_util::GetStringUTF16(IDS_SEARCH_ENGINE_ADD_NEW_NAME_PLACEHOLDER)); 71 l10n_util::GetStringUTF16(IDS_SEARCH_ENGINE_ADD_NEW_NAME_PLACEHOLDER));
80 localized_strings->SetString("searchEngineTableKeywordPlaceholder", 72 localized_strings->SetString("searchEngineTableKeywordPlaceholder",
81 l10n_util::GetStringUTF16(IDS_SEARCH_ENGINE_ADD_NEW_KEYWORD_PLACEHOLDER)); 73 l10n_util::GetStringUTF16(IDS_SEARCH_ENGINE_ADD_NEW_KEYWORD_PLACEHOLDER));
82 localized_strings->SetString("searchEngineTableURLPlaceholder", 74 localized_strings->SetString("searchEngineTableURLPlaceholder",
83 l10n_util::GetStringUTF16(IDS_SEARCH_ENGINE_ADD_NEW_URL_PLACEHOLDER)); 75 l10n_util::GetStringUTF16(IDS_SEARCH_ENGINE_ADD_NEW_URL_PLACEHOLDER));
84 localized_strings->SetString("editSearchEngineInvalidTitleToolTip", 76 localized_strings->SetString("editSearchEngineInvalidTitleToolTip",
85 l10n_util::GetStringUTF16(IDS_SEARCH_ENGINES_INVALID_TITLE_TT)); 77 l10n_util::GetStringUTF16(IDS_SEARCH_ENGINES_INVALID_TITLE_TT));
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 if (!args->GetString(ENGINE_NAME, &name) || 306 if (!args->GetString(ENGINE_NAME, &name) ||
315 !args->GetString(ENGINE_KEYWORD, &keyword) || 307 !args->GetString(ENGINE_KEYWORD, &keyword) ||
316 !args->GetString(ENGINE_URL, &url)) { 308 !args->GetString(ENGINE_URL, &url)) {
317 NOTREACHED(); 309 NOTREACHED();
318 return; 310 return;
319 } 311 }
320 edit_controller_->AcceptAddOrEdit(name, keyword, url); 312 edit_controller_->AcceptAddOrEdit(name, keyword, url);
321 } 313 }
322 314
323 } // namespace options2 315 } // namespace options2
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options2/password_manager_handler2.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