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

Unified Diff: trunk/src/chrome/browser/profiles/profile_window.cc

Issue 75483005: Revert 235801 "Fix crash when locking a profile. The crash is ha..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 1 month 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: trunk/src/chrome/browser/profiles/profile_window.cc
===================================================================
--- trunk/src/chrome/browser/profiles/profile_window.cc (revision 235821)
+++ trunk/src/chrome/browser/profiles/profile_window.cc (working copy)
@@ -10,7 +10,6 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/ui/browser.h"
-#include "chrome/browser/ui/browser_dialogs.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/user_metrics.h"
@@ -177,15 +176,4 @@
}
}
-void LockProfile(Profile* profile) {
- DCHECK(profile);
- ProfileInfoCache& cache =
- g_browser_process->profile_manager()->GetProfileInfoCache();
-
- size_t index = cache.GetIndexOfProfileWithPath(profile->GetPath());
- cache.SetProfileSigninRequiredAtIndex(index, true);
- chrome::ShowUserManager(profile->GetPath());
- BrowserList::CloseAllBrowsersWithProfile(profile);
-}
-
} // namespace profiles
« no previous file with comments | « trunk/src/chrome/browser/profiles/profile_window.h ('k') | trunk/src/chrome/browser/ui/views/avatar_menu_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698