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

Unified Diff: chrome/browser/ui/tab_contents/tab_contents.cc

Issue 11411267: Make sure to display an errors that occur during the chrome sign in process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ntp bubble Created 8 years 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/tab_contents/tab_contents.cc
diff --git a/chrome/browser/ui/tab_contents/tab_contents.cc b/chrome/browser/ui/tab_contents/tab_contents.cc
index 06ed203224fed536dc09fedc69de22fda1f422ea..d939ab2163ae007c825b41e08035f3da18aaaf80 100644
--- a/chrome/browser/ui/tab_contents/tab_contents.cc
+++ b/chrome/browser/ui/tab_contents/tab_contents.cc
@@ -188,8 +188,10 @@ TabContents::TabContents(WebContents* contents)
// because the connected state may change while this tab is open. Having a
// one-click signin helper attached does not cause problems if the profile
// happens to be already connected.
- if (OneClickSigninHelper::CanOffer(contents, "", false))
- OneClickSigninHelper::CreateForWebContents(contents);
+ int error_message_id = 0;
+ if (OneClickSigninHelper::CanOffer(contents,
Andrew T Wilson (Slow) 2012/12/03 14:54:49 Consider just passing null here for error_message_
Roger Tawa OOO till Jul 10th 2012/12/03 22:26:54 Done.
+ OneClickSigninHelper::CAN_OFFER_FOR_ALL, "", &error_message_id))
+ OneClickSigninHelper::CreateForWebContents(contents);
#endif
#if defined(OS_WIN)

Powered by Google App Engine
This is Rietveld 408576698