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

Unified Diff: chrome/browser/ui/views/profiles/user_manager_view.cc

Issue 847733005: Move User Manager onto a System profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 11 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/ui/views/profiles/user_manager_view.h ('k') | chrome/common/chrome_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/profiles/user_manager_view.cc
diff --git a/chrome/browser/ui/views/profiles/user_manager_view.cc b/chrome/browser/ui/views/profiles/user_manager_view.cc
index 2f9ed334a4cb052449fa97752ed0fe7581d18435..5b65703b32d770dd5a4f5d91efce63d3711b0c4b 100644
--- a/chrome/browser/ui/views/profiles/user_manager_view.cc
+++ b/chrome/browser/ui/views/profiles/user_manager_view.cc
@@ -61,13 +61,13 @@ void UserManager::Show(
return;
}
- // Create the guest profile, if necessary, and open the user manager
- // from the guest profile.
- profiles::CreateGuestProfileForUserManager(
+ // Create the system profile, if necessary, and open the user manager
+ // from the system profile.
+ profiles::CreateSystemProfileForUserManager(
profile_path_to_focus,
tutorial_mode,
profile_open_action,
- base::Bind(&UserManagerView::OnGuestProfileCreated,
+ base::Bind(&UserManagerView::OnSystemProfileCreated,
base::Passed(make_scoped_ptr(new UserManagerView))));
}
@@ -91,9 +91,9 @@ UserManagerView::~UserManagerView() {
}
// static
-void UserManagerView::OnGuestProfileCreated(
+void UserManagerView::OnSystemProfileCreated(
scoped_ptr<UserManagerView> instance,
- Profile* guest_profile,
+ Profile* system_profile,
const std::string& url) {
// If we are showing the User Manager after locking a profile, change the
// active profile to Guest.
@@ -101,11 +101,11 @@ void UserManagerView::OnGuestProfileCreated(
DCHECK(!instance_);
instance_ = instance.release(); // |instance_| takes over ownership.
- instance_->Init(guest_profile, GURL(url));
+ instance_->Init(system_profile, GURL(url));
}
-void UserManagerView::Init(Profile* guest_profile, const GURL& url) {
- web_view_ = new views::WebView(guest_profile);
+void UserManagerView::Init(Profile* system_profile, const GURL& url) {
+ web_view_ = new views::WebView(system_profile);
web_view_->set_allow_accelerators(true);
AddChildView(web_view_);
SetLayoutManager(new views::FillLayout);
@@ -149,7 +149,7 @@ void UserManagerView::Init(Profile* guest_profile, const GURL& url) {
// Set the app id for the task manager to the app id of its parent
ui::win::SetAppIdForWindow(
ShellIntegration::GetChromiumModelIdForProfile(
- guest_profile->GetPath()),
+ system_profile->GetPath()),
views::HWNDForWidget(GetWidget()));
#endif
« no previous file with comments | « chrome/browser/ui/views/profiles/user_manager_view.h ('k') | chrome/common/chrome_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698