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

Side by Side Diff: chrome/browser/ui/browser.cc

Issue 6122008: Also delete plugin data when the cookies checkbox in the clear browsing data dialog is checked. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 9 years, 11 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) 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/ui/browser.h" 5 #include "chrome/browser/ui/browser.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <shellapi.h> 8 #include <shellapi.h>
9 #include <windows.h> 9 #include <windows.h>
10 #endif // OS_WIN 10 #endif // OS_WIN
(...skipping 1993 matching lines...) Expand 10 before | Expand all | Expand 10 after
2004 prefs->RegisterBooleanPref(prefs::kShowPageOptionsButtons, false); 2004 prefs->RegisterBooleanPref(prefs::kShowPageOptionsButtons, false);
2005 prefs->RegisterBooleanPref(prefs::kShowUpdatePromotionInfoBar, true); 2005 prefs->RegisterBooleanPref(prefs::kShowUpdatePromotionInfoBar, true);
2006 #endif 2006 #endif
2007 prefs->RegisterStringPref(prefs::kRecentlySelectedEncoding, ""); 2007 prefs->RegisterStringPref(prefs::kRecentlySelectedEncoding, "");
2008 prefs->RegisterBooleanPref(prefs::kDeleteBrowsingHistory, true); 2008 prefs->RegisterBooleanPref(prefs::kDeleteBrowsingHistory, true);
2009 prefs->RegisterBooleanPref(prefs::kDeleteDownloadHistory, true); 2009 prefs->RegisterBooleanPref(prefs::kDeleteDownloadHistory, true);
2010 prefs->RegisterBooleanPref(prefs::kDeleteCache, true); 2010 prefs->RegisterBooleanPref(prefs::kDeleteCache, true);
2011 prefs->RegisterBooleanPref(prefs::kDeleteCookies, true); 2011 prefs->RegisterBooleanPref(prefs::kDeleteCookies, true);
2012 prefs->RegisterBooleanPref(prefs::kDeletePasswords, false); 2012 prefs->RegisterBooleanPref(prefs::kDeletePasswords, false);
2013 prefs->RegisterBooleanPref(prefs::kDeleteFormData, false); 2013 prefs->RegisterBooleanPref(prefs::kDeleteFormData, false);
2014 prefs->RegisterBooleanPref(prefs::kDeleteLSOData, false);
2015 prefs->RegisterIntegerPref(prefs::kDeleteTimePeriod, 0); 2014 prefs->RegisterIntegerPref(prefs::kDeleteTimePeriod, 0);
2016 prefs->RegisterBooleanPref(prefs::kCheckDefaultBrowser, true); 2015 prefs->RegisterBooleanPref(prefs::kCheckDefaultBrowser, true);
2017 prefs->RegisterBooleanPref(prefs::kShowOmniboxSearchHint, true); 2016 prefs->RegisterBooleanPref(prefs::kShowOmniboxSearchHint, true);
2018 prefs->RegisterBooleanPref(prefs::kWebAppCreateOnDesktop, true); 2017 prefs->RegisterBooleanPref(prefs::kWebAppCreateOnDesktop, true);
2019 prefs->RegisterBooleanPref(prefs::kWebAppCreateInAppsMenu, true); 2018 prefs->RegisterBooleanPref(prefs::kWebAppCreateInAppsMenu, true);
2020 prefs->RegisterBooleanPref(prefs::kWebAppCreateInQuickLaunchBar, true); 2019 prefs->RegisterBooleanPref(prefs::kWebAppCreateInQuickLaunchBar, true);
2021 prefs->RegisterBooleanPref(prefs::kUseVerticalTabs, false); 2020 prefs->RegisterBooleanPref(prefs::kUseVerticalTabs, false);
2022 prefs->RegisterBooleanPref(prefs::kEnableTranslate, true); 2021 prefs->RegisterBooleanPref(prefs::kEnableTranslate, true);
2023 prefs->RegisterBooleanPref(prefs::kRemotingHasSetupCompleted, false); 2022 prefs->RegisterBooleanPref(prefs::kRemotingHasSetupCompleted, false);
2024 prefs->RegisterStringPref(prefs::kCloudPrintEmail, std::string()); 2023 prefs->RegisterStringPref(prefs::kCloudPrintEmail, std::string());
(...skipping 2212 matching lines...) Expand 10 before | Expand all | Expand 10 after
4237 // The page transition below is only for the purpose of inserting the tab. 4236 // The page transition below is only for the purpose of inserting the tab.
4238 browser->AddTab(view_source_contents, PageTransition::LINK); 4237 browser->AddTab(view_source_contents, PageTransition::LINK);
4239 } 4238 }
4240 4239
4241 if (profile_->HasSessionService()) { 4240 if (profile_->HasSessionService()) {
4242 SessionService* session_service = profile_->GetSessionService(); 4241 SessionService* session_service = profile_->GetSessionService();
4243 if (session_service) 4242 if (session_service)
4244 session_service->TabRestored(&view_source_contents->controller(), false); 4243 session_service->TabRestored(&view_source_contents->controller(), false);
4245 } 4244 }
4246 } 4245 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/synchronized_preferences.h ('k') | chrome/browser/ui/options/options_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698