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

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

Issue 5513006: WEBUI Settings: Basics: Change 'Manage' to 'Manage search engines' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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/browser_options_handler.h" 5 #include "chrome/browser/dom_ui/options/browser_options_handler.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/scoped_ptr.h" 9 #include "base/scoped_ptr.h"
10 #include "base/singleton.h" 10 #include "base/singleton.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 localized_strings->SetString("homepageUseNewTab", 63 localized_strings->SetString("homepageUseNewTab",
64 l10n_util::GetStringUTF16(IDS_OPTIONS_HOMEPAGE_USE_NEWTAB)); 64 l10n_util::GetStringUTF16(IDS_OPTIONS_HOMEPAGE_USE_NEWTAB));
65 localized_strings->SetString("homepageUseURL", 65 localized_strings->SetString("homepageUseURL",
66 l10n_util::GetStringUTF16(IDS_OPTIONS_HOMEPAGE_USE_URL)); 66 l10n_util::GetStringUTF16(IDS_OPTIONS_HOMEPAGE_USE_URL));
67 localized_strings->SetString("toolbarGroupName", 67 localized_strings->SetString("toolbarGroupName",
68 l10n_util::GetStringUTF16(IDS_OPTIONS_TOOLBAR_GROUP_NAME)); 68 l10n_util::GetStringUTF16(IDS_OPTIONS_TOOLBAR_GROUP_NAME));
69 localized_strings->SetString("toolbarShowHomeButton", 69 localized_strings->SetString("toolbarShowHomeButton",
70 l10n_util::GetStringUTF16(IDS_OPTIONS_TOOLBAR_SHOW_HOME_BUTTON)); 70 l10n_util::GetStringUTF16(IDS_OPTIONS_TOOLBAR_SHOW_HOME_BUTTON));
71 localized_strings->SetString("defaultSearchGroupName", 71 localized_strings->SetString("defaultSearchGroupName",
72 l10n_util::GetStringUTF16(IDS_OPTIONS_DEFAULTSEARCH_GROUP_NAME)); 72 l10n_util::GetStringUTF16(IDS_OPTIONS_DEFAULTSEARCH_GROUP_NAME));
73 localized_strings->SetString("defaultSearchManageEnginesLink", 73 localized_strings->SetString("defaultSearchManageEngines",
74 l10n_util::GetStringUTF16(IDS_OPTIONS_DEFAULTSEARCH_MANAGE_ENGINES_LINK)); 74 l10n_util::GetStringUTF16(IDS_OPTIONS_DEFAULTSEARCH_MANAGE_ENGINES));
75 localized_strings->SetString("instantName", 75 localized_strings->SetString("instantName",
76 l10n_util::GetStringUTF16(IDS_INSTANT_PREF)); 76 l10n_util::GetStringUTF16(IDS_INSTANT_PREF));
77 localized_strings->SetString("instantWarningText", 77 localized_strings->SetString("instantWarningText",
78 l10n_util::GetStringUTF16(IDS_INSTANT_PREF_WARNING)); 78 l10n_util::GetStringUTF16(IDS_INSTANT_PREF_WARNING));
79 localized_strings->SetString("instantLearnMoreLink", 79 localized_strings->SetString("instantLearnMoreLink",
80 ASCIIToUTF16(browser::kInstantLearnMoreURL)); 80 ASCIIToUTF16(browser::kInstantLearnMoreURL));
81 localized_strings->SetString("instantConfirmTitle", 81 localized_strings->SetString("instantConfirmTitle",
82 l10n_util::GetStringUTF16(IDS_INSTANT_OPT_IN_TITLE)); 82 l10n_util::GetStringUTF16(IDS_INSTANT_OPT_IN_TITLE));
83 localized_strings->SetString("instantConfirmMessage", 83 localized_strings->SetString("instantConfirmMessage",
84 l10n_util::GetStringUTF16(IDS_INSTANT_OPT_IN_MESSAGE)); 84 l10n_util::GetStringUTF16(IDS_INSTANT_OPT_IN_MESSAGE));
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 } 351 }
352 352
353 void BrowserOptionsHandler::SaveStartupPagesPref() { 353 void BrowserOptionsHandler::SaveStartupPagesPref() {
354 PrefService* prefs = dom_ui_->GetProfile()->GetPrefs(); 354 PrefService* prefs = dom_ui_->GetProfile()->GetPrefs();
355 355
356 SessionStartupPref pref = SessionStartupPref::GetStartupPref(prefs); 356 SessionStartupPref pref = SessionStartupPref::GetStartupPref(prefs);
357 pref.urls = startup_custom_pages_table_model_->GetURLs(); 357 pref.urls = startup_custom_pages_table_model_->GetURLs();
358 358
359 SessionStartupPref::SetStartupPref(prefs, pref); 359 SessionStartupPref::SetStartupPref(prefs, pref);
360 } 360 }
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/resources/options/browser_options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698