| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |