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

Unified Diff: chrome/browser/profiles/profile_manager.h

Issue 7717025: Do not initialize event routers in the Profile Import process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: reset will_import_ value when import complete. Created 9 years, 4 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/profiles/profile_impl.cc ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_manager.h
===================================================================
--- chrome/browser/profiles/profile_manager.h (revision 97857)
+++ chrome/browser/profiles/profile_manager.h (working copy)
@@ -126,6 +126,13 @@
virtual void OnBrowserRemoved(const Browser* browser);
virtual void OnBrowserSetLastActive(const Browser* browser);
+ // Indicate that an import process will run for the next created Profile.
+ void SetWillImport();
+ bool will_import() { return will_import_; }
+
+ // Indicate that the import process for |profile| has completed.
+ void OnImportFinished(Profile* profile);
+
// ------------------ static utility functions -------------------
// Returns the path to the default profile directory, based on the given
@@ -225,6 +232,9 @@
// default.
bool logged_in_;
+ // True if an import process will be run.
+ bool will_import_;
+
// Maps profile path to ProfileInfo (if profile has been created). Use
// RegisterProfile() to add into this map.
typedef std::map<FilePath, linked_ptr<ProfileInfo> > ProfilesInfoMap;
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698