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

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

Issue 6292014: DOMUI Prefs: Remove the startup page managment sub-page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-add accidentally removed CSS Created 9 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/dom_ui/options/options_ui.cc » ('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) 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/dom_ui/options/browser_options_handler.h" 5 #include "chrome/browser/dom_ui/options/browser_options_handler.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/scoped_ptr.h" 8 #include "base/scoped_ptr.h"
9 #include "base/singleton.h" 9 #include "base/singleton.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 DCHECK(localized_strings); 48 DCHECK(localized_strings);
49 localized_strings->SetString("startupGroupName", 49 localized_strings->SetString("startupGroupName",
50 dom_options_util::StripColon( 50 dom_options_util::StripColon(
51 l10n_util::GetStringUTF16(IDS_OPTIONS_STARTUP_GROUP_NAME))); 51 l10n_util::GetStringUTF16(IDS_OPTIONS_STARTUP_GROUP_NAME)));
52 localized_strings->SetString("startupShowDefaultAndNewTab", 52 localized_strings->SetString("startupShowDefaultAndNewTab",
53 l10n_util::GetStringUTF16(IDS_OPTIONS_STARTUP_SHOW_DEFAULT_AND_NEWTAB)); 53 l10n_util::GetStringUTF16(IDS_OPTIONS_STARTUP_SHOW_DEFAULT_AND_NEWTAB));
54 localized_strings->SetString("startupShowLastSession", 54 localized_strings->SetString("startupShowLastSession",
55 l10n_util::GetStringUTF16(IDS_OPTIONS_STARTUP_SHOW_LAST_SESSION)); 55 l10n_util::GetStringUTF16(IDS_OPTIONS_STARTUP_SHOW_LAST_SESSION));
56 localized_strings->SetString("startupShowPages", 56 localized_strings->SetString("startupShowPages",
57 l10n_util::GetStringUTF16(IDS_OPTIONS_STARTUP_SHOW_PAGES)); 57 l10n_util::GetStringUTF16(IDS_OPTIONS_STARTUP_SHOW_PAGES));
58 localized_strings->SetString("startupShowManyPages", 58 localized_strings->SetString("startupAddButton",
59 l10n_util::GetStringUTF16(IDS_OPTIONS_STARTUP_SHOW_MANY_PAGES)); 59 l10n_util::GetStringUTF16(IDS_OPTIONS_STARTUP_ADD_BUTTON));
60 localized_strings->SetString("startupUseCurrent", 60 localized_strings->SetString("startupUseCurrent",
61 l10n_util::GetStringUTF16(IDS_OPTIONS_STARTUP_USE_CURRENT)); 61 l10n_util::GetStringUTF16(IDS_OPTIONS_STARTUP_USE_CURRENT));
62 localized_strings->SetString("homepageGroupName", 62 localized_strings->SetString("homepageGroupName",
63 dom_options_util::StripColon( 63 dom_options_util::StripColon(
64 l10n_util::GetStringUTF16(IDS_OPTIONS_HOMEPAGE_GROUP_NAME))); 64 l10n_util::GetStringUTF16(IDS_OPTIONS_HOMEPAGE_GROUP_NAME)));
65 localized_strings->SetString("homepageUseNewTab", 65 localized_strings->SetString("homepageUseNewTab",
66 l10n_util::GetStringUTF16(IDS_OPTIONS_HOMEPAGE_USE_NEWTAB)); 66 l10n_util::GetStringUTF16(IDS_OPTIONS_HOMEPAGE_USE_NEWTAB));
67 localized_strings->SetString("homepageUseURL", 67 localized_strings->SetString("homepageUseURL",
68 l10n_util::GetStringUTF16(IDS_OPTIONS_HOMEPAGE_USE_URL)); 68 l10n_util::GetStringUTF16(IDS_OPTIONS_HOMEPAGE_USE_URL));
69 localized_strings->SetString("toolbarGroupName", 69 localized_strings->SetString("toolbarGroupName",
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 } 402 }
403 403
404 void BrowserOptionsHandler::SaveStartupPagesPref() { 404 void BrowserOptionsHandler::SaveStartupPagesPref() {
405 PrefService* prefs = dom_ui_->GetProfile()->GetPrefs(); 405 PrefService* prefs = dom_ui_->GetProfile()->GetPrefs();
406 406
407 SessionStartupPref pref = SessionStartupPref::GetStartupPref(prefs); 407 SessionStartupPref pref = SessionStartupPref::GetStartupPref(prefs);
408 pref.urls = startup_custom_pages_table_model_->GetURLs(); 408 pref.urls = startup_custom_pages_table_model_->GetURLs();
409 409
410 SessionStartupPref::SetStartupPref(prefs, pref); 410 SessionStartupPref::SetStartupPref(prefs, pref);
411 } 411 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/dom_ui/options/options_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698