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

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: add process restriction from first CL 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
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);
+ // Set the flag indicating whether an import process will be run. If
+ // |will_import| is false, notify the NotificationService that |profile| has
+ // finished its import process. If |will_import| is false, |profile| is
+ // required to be non-NULL.
+ void SetWillImport(bool will_import, Profile* profile);
+ bool will_import() { return will_import_; }
+
// ------------------ 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;

Powered by Google App Engine
This is Rietveld 408576698