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

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

Issue 953453002: Wait until a new profile has been created before deleting the active profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: fix!!!!11111oneoneoneoneargh Created 5 years, 10 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/app_controller_mac.mm ('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
diff --git a/chrome/browser/profiles/profile_manager.h b/chrome/browser/profiles/profile_manager.h
index ff28e3d1e6537440ad58ee5e5d2c92be1513dd34..9436a459e1f58dcb7346727914f52ff74955cc51 100644
--- a/chrome/browser/profiles/profile_manager.h
+++ b/chrome/browser/profiles/profile_manager.h
@@ -265,8 +265,10 @@ class ProfileManager : public base::NonThreadSafe,
// creation and adds it to the set managed by this ProfileManager.
Profile* CreateAndInitializeProfile(const base::FilePath& profile_dir);
- // Schedules the profile at the given path to be deleted on shutdown.
- void FinishDeletingProfile(const base::FilePath& profile_dir);
+ // Schedules the profile at the given path to be deleted on shutdown,
+ // and marks the new profile as active.
+ void FinishDeletingProfile(const base::FilePath& profile_dir,
+ const base::FilePath& new_active_profile_dir);
// Registers profile with given info. Returns pointer to created ProfileInfo
// entry.
@@ -317,7 +319,6 @@ class ProfileManager : public base::NonThreadSafe,
};
#endif // !defined(OS_ANDROID) && !defined(OS_IOS)
-#if defined(OS_MACOSX)
// If the |loaded_profile| has been loaded successfully (according to
// |status|) and isn't already scheduled for deletion, then finishes adding
// |profile_to_delete_dir| to the queue of profiles to be deleted, and updates
@@ -329,7 +330,6 @@ class ProfileManager : public base::NonThreadSafe,
const CreateCallback& original_callback,
Profile* loaded_profile,
Profile::CreateStatus status);
-#endif
content::NotificationRegistrar registrar_;
« no previous file with comments | « chrome/browser/app_controller_mac.mm ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698