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

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: format 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..8eb556ee37d9a1f19d30572ed9235f33e1c17bad 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,10 @@ 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 a new wecome page.
grt (UTC plus 2) 2015/09/04 18:35:48 it's not clear what "new welcome page" means. how
robertshield 2015/09/04 20:27:18 Done.
+ 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 +157,8 @@ class StartupBrowserCreatorImpl {
// Record Rappor metrics on startup URLs.
void RecordRapporOnStartupURLs(const std::vector<GURL>& urls_to_open);
+ bool ProfileHasResetTrigger() const;
+
const base::FilePath cur_dir_;
const base::CommandLine& command_line_;
Profile* profile_;

Powered by Google App Engine
This is Rietveld 408576698