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

Unified Diff: chrome/browser/extensions/app_notify_channel_setup.h

Issue 8822006: Fix the app notify channel setup for the case where the user may have explicitly revoked permissi... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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
« no previous file with comments | « no previous file | chrome/browser/extensions/app_notify_channel_setup.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/app_notify_channel_setup.h
===================================================================
--- chrome/browser/extensions/app_notify_channel_setup.h (revision 113112)
+++ chrome/browser/extensions/app_notify_channel_setup.h (working copy)
@@ -149,6 +149,11 @@
scoped_ptr<AppNotifyChannelUI> ui_;
State state_;
std::string oauth2_access_token_;
+ // Keeps track of whether we have encountered failure in OAuth2 access
+ // token generation already. We use this to prevent us from doing an
+ // infinite loop of trying to generate access token, if that fails, try
+ // to login the user and generate access token, etc.
+ bool oauth2_access_token_failure_;
DISALLOW_COPY_AND_ASSIGN(AppNotifyChannelSetup);
};
« no previous file with comments | « no previous file | chrome/browser/extensions/app_notify_channel_setup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698