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

Unified Diff: chrome/browser/ui/cocoa/profiles/profile_menu_controller_unittest.mm

Issue 384023002: Rename "managed (mode|user)" to "supervised user" (part 6) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: break long lines Created 6 years, 5 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/ui/cocoa/profiles/profile_menu_controller_unittest.mm
diff --git a/chrome/browser/ui/cocoa/profiles/profile_menu_controller_unittest.mm b/chrome/browser/ui/cocoa/profiles/profile_menu_controller_unittest.mm
index 7f62487a0aa6df2a7b50d00e27d9c1241c14e50a..7b65e7425e9de92a7ec4e77a8992fa5accc7f982 100644
--- a/chrome/browser/ui/cocoa/profiles/profile_menu_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/profiles/profile_menu_controller_unittest.mm
@@ -244,9 +244,9 @@ TEST_F(ProfileMenuControllerTest, DeleteActiveProfile) {
base::ThreadRestrictions::SetIOAllowed(io_was_allowed);
}
-TEST_F(ProfileMenuControllerTest, ManagedProfile) {
+TEST_F(ProfileMenuControllerTest, SupervisedProfile) {
TestingProfileManager* manager = testing_profile_manager();
- TestingProfile* managed_profile =
+ TestingProfile* supervised_profile =
manager->CreateTestingProfile("test1",
scoped_ptr<PrefServiceSyncable>(),
base::ASCIIToUTF16("Supervised User"),
@@ -269,12 +269,12 @@ TEST_F(ProfileMenuControllerTest, ManagedProfile) {
ASSERT_EQ(@selector(newProfile:), [item action]);
EXPECT_TRUE([controller() validateMenuItem:item]);
- // Open a new browser for the managed user and switch to it.
- Browser::CreateParams managed_profile_params(
- managed_profile, chrome::HOST_DESKTOP_TYPE_NATIVE);
- scoped_ptr<Browser> managed_browser(
- chrome::CreateBrowserWithTestWindowForParams(&managed_profile_params));
- BrowserList::SetLastActive(managed_browser.get());
+ // Open a new browser for the supervised user and switch to it.
+ Browser::CreateParams supervised_profile_params(
+ supervised_profile, chrome::HOST_DESKTOP_TYPE_NATIVE);
+ scoped_ptr<Browser> supervised_browser(
+ chrome::CreateBrowserWithTestWindowForParams(&supervised_profile_params));
+ BrowserList::SetLastActive(supervised_browser.get());
item = [menu itemAtIndex:0];
ASSERT_EQ(@selector(switchToProfileFromMenu:), [item action]);

Powered by Google App Engine
This is Rietveld 408576698