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

Unified Diff: ui/app_list/cocoa/apps_search_box_controller.mm

Issue 22268009: Move signin status and current user information into AppListModel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rework Created 7 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: ui/app_list/cocoa/apps_search_box_controller.mm
diff --git a/ui/app_list/cocoa/apps_search_box_controller.mm b/ui/app_list/cocoa/apps_search_box_controller.mm
index 6d38f94c5c1ac5f0a3ce7414af81aee1eabcc247..0ed958879ea6f5c1eaf4ef50a9e315ba58112f01 100644
--- a/ui/app_list/cocoa/apps_search_box_controller.mm
+++ b/ui/app_list/cocoa/apps_search_box_controller.mm
@@ -373,7 +373,8 @@ void SearchBoxModelObserverBridge::TextChanged() {
return;
base::scoped_nsobject<NSView> customItemView([[CurrentUserMenuItemView alloc]
- initWithDelegate:[[searchBoxController_ delegate] appListDelegate]]);
+ initWithCurrentUser:[[searchBoxController_ delegate] currentUserName]
+ userEmail:[[searchBoxController_ delegate] currentUserEmail]]);
[[menu itemAtIndex:index] setView:customItemView];
}

Powered by Google App Engine
This is Rietveld 408576698