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

Unified Diff: chrome/browser/signin/signin_header_helper.cc

Issue 132033005: [Android] Stub for account management screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Grrr. Created 6 years, 11 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/signin/signin_header_helper.cc
diff --git a/chrome/browser/signin/signin_header_helper.cc b/chrome/browser/signin/signin_header_helper.cc
index be6bcf41b65f59f22838ad9b34c788c346d3ca91..54696996ce818f25e71960cf629552de0a6a5fb3 100644
--- a/chrome/browser/signin/signin_header_helper.cc
+++ b/chrome/browser/signin/signin_header_helper.cc
@@ -16,6 +16,10 @@
#include "net/http/http_response_headers.h"
#include "net/url_request/url_request.h"
+#if defined(OS_ANDROID)
+#include "chrome/browser/android/signin/account_management_screen_helper.h"
+#endif // defined(OS_ANDROID)
+
namespace {
const char kChromeConnectedHeader[] = "X-Chrome-Connected";
@@ -36,6 +40,8 @@ void ShowAvatarBubbleUIThread(int child_id, int route_id) {
if (browser)
browser->window()->ShowAvatarBubbleFromAvatarButton();
// TODO(guohui): need to handle the case when avatar button is not available.
+#else // defined(OS_ANDROID)
+ AccountManagementScreenHelper::OpenAccountManagementScreen();
Andrew T Wilson (Slow) 2014/01/16 10:00:45 Seems like a better way to do this is to define Si
aruslan 2014/01/16 15:26:13 I have contemplated converting the code in this fi
guohui 2014/01/16 19:11:01 I don't have a strong preference myself, it really
aruslan 2014/01/16 19:24:57 Currently that "dozen lines" of Android-specific c
guohui 2014/01/16 19:48:37 if you are confident that this single line is the
#endif // OS_ANDROID
}

Powered by Google App Engine
This is Rietveld 408576698