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

Unified Diff: chrome/browser/ui/startup/startup_browser_creator_impl.h

Issue 1294923003: Add a triggered profile reset mechanism. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: msw feedback Created 5 years, 3 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/ui/startup/startup_browser_creator_impl.h
diff --git a/chrome/browser/ui/startup/startup_browser_creator_impl.h b/chrome/browser/ui/startup/startup_browser_creator_impl.h
index 3fbaa104ffac85c727760d735adda55bbcb78eca..d0bd9dd363e9340f148bd2eaeda110d631e6f806 100644
--- a/chrome/browser/ui/startup/startup_browser_creator_impl.h
+++ b/chrome/browser/ui/startup/startup_browser_creator_impl.h
@@ -29,6 +29,7 @@ class WebContents;
}
namespace internals {
+GURL GetResetSettingsURL();
GURL GetWelcomePageURL();
} // namespace internals
@@ -145,6 +146,11 @@ class StartupBrowserCreatorImpl {
// Adds additional startup URLs to the specified vector.
void AddStartupURLs(std::vector<GURL>* startup_urls) const;
+ // Adds special URLs to the specified vector. These URLs are triggered by
+ // special-case logic, such as profile reset or presentation of the welcome
+ // page.
+ void AddSpecialURLs(std::vector<GURL>* startup_urls) const;
+
// Initializes |welcome_run_type_| for this launch. Also persists state to
// suppress injecting the welcome page for future launches.
void InitializeWelcomeRunType(const std::vector<GURL>& urls_to_open);
@@ -152,6 +158,10 @@ class StartupBrowserCreatorImpl {
// Record Rappor metrics on startup URLs.
void RecordRapporOnStartupURLs(const std::vector<GURL>& urls_to_open);
+ // Checks whether |profile_| has a reset trigger set and then clears the
+ // reset trigger.
+ bool CheckAndClearProfileResetTrigger() const;
+
const base::FilePath cur_dir_;
const base::CommandLine& command_line_;
Profile* profile_;

Powered by Google App Engine
This is Rietveld 408576698