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

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

Issue 476993002: [Profiles] Fix the usage of custom/default names and avatars (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: all rebase all the time Created 6 years, 4 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/avatar_button_controller_unittest.mm
diff --git a/chrome/browser/ui/cocoa/profiles/avatar_button_controller_unittest.mm b/chrome/browser/ui/cocoa/profiles/avatar_button_controller_unittest.mm
index 5ce2e9ece4ac160ff581104fa0d7c35dd3ac4129..a14fbefb160b147390263d2739e93a140f0a2e3d 100644
--- a/chrome/browser/ui/cocoa/profiles/avatar_button_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/profiles/avatar_button_controller_unittest.mm
@@ -17,8 +17,8 @@
#import "chrome/browser/ui/cocoa/profiles/profile_chooser_controller.h"
#include "chrome/common/chrome_switches.h"
#include "components/signin/core/common/profile_management_switches.h"
-
-const char kDefaultProfileName[] = "default";
+#include "grit/generated_resources.h"
+#include "ui/base/l10n/l10n_util.h"
class AvatarButtonControllerTest : public CocoaProfileTest {
public:
@@ -50,7 +50,8 @@ class AvatarButtonControllerTest : public CocoaProfileTest {
TEST_F(AvatarButtonControllerTest, ButtonShown) {
EXPECT_FALSE([view() isHidden]);
- EXPECT_EQ(kDefaultProfileName, base::SysNSStringToUTF8([button() title]));
+ EXPECT_EQ(l10n_util::GetStringUTF16(IDS_SINGLE_PROFILE_DISPLAY_NAME),
+ base::SysNSStringToUTF16([button() title]));
}
TEST_F(AvatarButtonControllerTest, DoubleOpen) {
« no previous file with comments | « chrome/browser/profiles/profiles_state.cc ('k') | chrome/browser/ui/webui/options/manage_profile_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698