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

Unified Diff: chrome/browser/ui/webui/ntp/ntp_login_handler.h

Issue 8110003: Show avatar menu from NTP4 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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/webui/ntp/ntp_login_handler.h
diff --git a/chrome/browser/ui/webui/ntp/ntp_login_handler.h b/chrome/browser/ui/webui/ntp/ntp_login_handler.h
index 37c400efe1e33c826b25ef939ab1f3b709d3fd49..1ba02929d354a9d198f8f8768bdb4fb979b9f6b7 100644
--- a/chrome/browser/ui/webui/ntp/ntp_login_handler.h
+++ b/chrome/browser/ui/webui/ntp/ntp_login_handler.h
@@ -11,6 +11,7 @@
#include "content/common/notification_observer.h"
class Profile;
+class Browser;
// The NTP login handler currently simply displays the current logged in
// username at the top of the NTP (and update itself when that changes).
@@ -45,6 +46,9 @@ class NTPLoginHandler : public WebUIMessageHandler,
// Internal helper method
void UpdateLogin();
+ // Gets the browser window that's currently hosting the new tab page.
+ Browser* GetBrowser();
+
StringPrefMember username_pref_;
};

Powered by Google App Engine
This is Rietveld 408576698