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

Unified Diff: chrome/browser/ui/webui/options/reset_profile_settings_handler.cc

Issue 16106002: Modify UI and logic in Reset Profile dialog (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 'Reset homepage' => 'Reset startup page' Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/options/reset_profile_settings_overlay.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/reset_profile_settings_handler.cc
diff --git a/chrome/browser/ui/webui/options/reset_profile_settings_handler.cc b/chrome/browser/ui/webui/options/reset_profile_settings_handler.cc
index de84fdfb642b6d9340e28791b425a65209a1500c..7dc0cb96528f263f6b7d17cd4363a8f48c995067 100644
--- a/chrome/browser/ui/webui/options/reset_profile_settings_handler.cc
+++ b/chrome/browser/ui/webui/options/reset_profile_settings_handler.cc
@@ -43,7 +43,8 @@ void ResetProfileSettingsHandler::GetLocalizedValues(
{ "resetProfileSettingsLabel", IDS_RESET_PROFILE_SETTINGS_LABEL },
{ "resetDefaultSearchEngineCheckbox",
IDS_RESET_PROFILE_DEFAULT_SEARCH_ENGINE_CHECKBOX },
- { "resetHomepageCheckbox", IDS_RESET_PROFILE_HOMEPAGE_CHECKBOX },
+ { "resetStartupAndHomepageCheckbox",
+ IDS_RESET_PROFILE_STARTUP_HOMEPAGE_CHECKBOX },
{ "resetContentSettingsCheckbox",
IDS_RESET_PROFILE_CONTENT_SETTINGS_CHECKBOX },
{ "resetCookiesAndSiteDataCheckbox", IDS_RESET_PROFILE_COOKIES_CHECKBOX },
@@ -100,11 +101,12 @@ void ResetProfileSettingsHandler::HandleResetProfileSettings(
struct {
const char* flag_name;
- ProfileResetter::Resettable mask;
+ ProfileResetter::ResettableFlags mask;
} name_to_flag[] = {
{ prefs::kResetDefaultSearchEngine,
ProfileResetter::DEFAULT_SEARCH_ENGINE },
- { prefs::kResetHomepage, ProfileResetter::HOMEPAGE },
+ { prefs::kResetHomepage, ProfileResetter::HOMEPAGE |
+ ProfileResetter::STARTUP_PAGE },
{ prefs::kResetContentSettings, ProfileResetter::CONTENT_SETTINGS },
{ prefs::kResetCookiesAndSiteData, ProfileResetter::COOKIES_AND_SITE_DATA },
{ prefs::kResetExtensions, ProfileResetter::EXTENSIONS },
« no previous file with comments | « chrome/browser/resources/options/reset_profile_settings_overlay.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698