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

Unified Diff: chrome/browser/profile_resetter/profile_resetter.h

Issue 16980002: Reset profile: unpin all pinned tabs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Android compilation Created 7 years, 6 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
Index: chrome/browser/profile_resetter/profile_resetter.h
diff --git a/chrome/browser/profile_resetter/profile_resetter.h b/chrome/browser/profile_resetter/profile_resetter.h
index 810ca5c34fed552cf4ad17eb065e8de1ebb787d1..cea3864cdc2c64019b48240edf16e9f8b48b1421 100644
--- a/chrome/browser/profile_resetter/profile_resetter.h
+++ b/chrome/browser/profile_resetter/profile_resetter.h
@@ -27,17 +27,12 @@ class ProfileResetter : public base::NonThreadSafe,
CONTENT_SETTINGS = 1 << 2,
COOKIES_AND_SITE_DATA = 1 << 3,
EXTENSIONS = 1 << 4,
- STARTUP_PAGE = 1 << 5,
+ STARTUP_PAGES = 1 << 5,
+ PINNED_TABS = 1 << 6,
// Update ALL if you add new values and check whether the type of
// ResettableFlags needs to be enlarged.
ALL = DEFAULT_SEARCH_ENGINE | HOMEPAGE | CONTENT_SETTINGS |
- COOKIES_AND_SITE_DATA | EXTENSIONS | STARTUP_PAGE
- };
-
- // How to handle extensions that shall be reset.
- enum ExtensionHandling {
- DISABLE_EXTENSIONS,
- UNINSTALL_EXTENSIONS
+ COOKIES_AND_SITE_DATA | EXTENSIONS | STARTUP_PAGES | PINNED_TABS
};
// Bit vector for Resettable enum.
@@ -53,7 +48,6 @@ class ProfileResetter : public base::NonThreadSafe,
// completion. If |resettable_flags| contains EXTENSIONS, these are handled
// according to |extension_handling|.
void Reset(ResettableFlags resettable_flags,
- ExtensionHandling extension_handling,
const base::Closure& callback);
bool IsActive() const;
@@ -67,8 +61,9 @@ class ProfileResetter : public base::NonThreadSafe,
void ResetHomepage();
void ResetContentSettings();
void ResetCookiesAndSiteData();
- void ResetExtensions(ExtensionHandling extension_handling);
+ void ResetExtensions();
void ResetStartPage();
+ void ResetPinnedTabs();
// content::NotificationObserver:
virtual void Observe(int type,

Powered by Google App Engine
This is Rietveld 408576698