Keep supervised users out of the profile list until they're registered.

Mark the ProfileInfoCache entries for supervised users with a flag that keeps
them from showing up in the profile list in the avatar menu on desktop Chrome
until they're fully registered and the manager's email address has been stored.

Add tests and update callers.

BUG=312698
TEST=covered by unit tests

Review URL: https://codereview.chromium.org/143993007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@248468 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/profiles/profile_info_cache_unittest.cc b/chrome/browser/profiles/profile_info_cache_unittest.cc
index 5e110f6..bc66460 100644
--- a/chrome/browser/profiles/profile_info_cache_unittest.cc
+++ b/chrome/browser/profiles/profile_info_cache_unittest.cc
@@ -146,6 +146,7 @@
     EXPECT_EQ(icon->width(), actual_icon->width());
     EXPECT_EQ(icon->height(), actual_icon->height());
     EXPECT_EQ(i == 3, GetCache()->ProfileIsManagedAtIndex(i));
+    EXPECT_EQ(i == 3, GetCache()->IsOmittedProfileAtIndex(i));
     EXPECT_EQ(managed_user_id, GetCache()->GetManagedUserIdOfProfileAtIndex(i));
   }