sync: Don't sound the INVALID_GAIA_CREDENTIALS alarm if credentials are available.
sync: Don't sound the INVALID_GAIA_CREDENTIALS alarm if credentials are available.

Before this patch, ProfileSyncService would drop into an invalid gaia auth error state whenever it received NOTIFICATION_TOKEN_REQUEST_FAILED. That notification is fired even if a valid token exists in the TokenService and sync was (potentially) authenticated.

This patch takes a more conservative approach where we don't UpdateAuthErrorState if the token service has a token for chromiumsync, and rely on actual auth errors from the SyncBackend to tell us if that token is valid or not.

BUG=121913, 120479
TEST=verifying error messaging when reauthenticating / signing in / restarting while signed in.

Review URL: https://chromiumcodereview.appspot.com/9980020

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@130836 0039d316-1c4b-4281-b951-d872f2087c98

anirudhSK/chromium,TheTypoMaster/chromium-crosswalk,nacl-webkit/chrome_deps,anirudhSK/chromium,ChromiumWebApps/chromium,Pluto-tv/chromium-crosswalk,robclark/chromium,dednal/chromium.src,Jonekee/chromium.src,ChromiumWebApps/chromium,hgl888/chromium-crosswalk,Chilledheart/chromium,pozdnyakov/chromium-crosswalk,axinging/chromium-crosswalk,jaruba/chromium.src,jaruba/chromium.src,timopulkkinen/BubbleFish,fujunwei/chromium-crosswalk,hgl888/chromium-crosswalk-efl,mogoweb/chromium-crosswalk,anirudhSK/chromium,hgl888/chromium-crosswalk,krieger-od/nwjs_chromium.src,M4sse/chromium.src,PeterWangIntel/chromium-crosswalk,krieger-od/nwjs_chromium.src,axinging/chromium-crosswalk,ondra-novak/chromium.src,jaruba/chromium.src,dushu1203/chromium.src,Just-D/chromium-1,ondra-novak/chromium.src,M4sse/chromium.src,Jonekee/chromium.src,Pluto-tv/chromium-crosswalk,hgl888/chromium-crosswalk-efl,hujiajie/pa-chromium,timopulkkinen/BubbleFish,markYoungH/chromium.src,krieger-od/nwjs_chromium.src,Fireblend/chromium-crosswalk,ChromiumWebApps/chromium,mogoweb/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,ondra-novak/chromium.src,littlstar/chromium.src,dushu1203/chromium.src,crosswalk-project/chromium-crosswalk-efl,chuan9/chromium-crosswalk,junmin-zhu/chromium-rivertrail,axinging/chromium-crosswalk,anirudhSK/chromium,chuan9/chromium-crosswalk,patrickm/chromium.src,keishi/chromium,junmin-zhu/chromium-rivertrail,chuan9/chromium-crosswalk,junmin-zhu/chromium-rivertrail,patrickm/chromium.src,Chilledheart/chromium,TheTypoMaster/chromium-crosswalk,fujunwei/chromium-crosswalk,ChromiumWebApps/chromium,Fireblend/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,krieger-od/nwjs_chromium.src,Pluto-tv/chromium-crosswalk,ChromiumWebApps/chromium,hgl888/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,robclark/chromium,Fireblend/chromium-crosswalk,nacl-webkit/chrome_deps,Jonekee/chromium.src,TheTypoMaster/chromium-crosswalk,pozdnyakov/chromium-crosswalk,pozdnyakov/chromium-crosswalk,Fireblend/chromium-crosswalk,fujunwei/chromium-crosswalk,Jonekee/chromium.src,hujiajie/pa-chromium,hgl888/chromium-crosswalk,Fireblend/chromium-crosswalk,dednal/chromium.src,pozdnyakov/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,patrickm/chromium.src,timopulkkinen/BubbleFish,markYoungH/chromium.src,hgl888/chromium-crosswalk-efl,zcbenz/cefode-chromium,fujunwei/chromium-crosswalk,ltilve/chromium,hujiajie/pa-chromium,zcbenz/cefode-chromium,robclark/chromium,dednal/chromium.src,M4sse/chromium.src,ltilve/chromium,jaruba/chromium.src,timopulkkinen/BubbleFish,robclark/chromium,junmin-zhu/chromium-rivertrail,mohamed--abdel-maksoud/chromium.src,robclark/chromium,ChromiumWebApps/chromium,mogoweb/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,patrickm/chromium.src,Just-D/chromium-1,anirudhSK/chromium,PeterWangIntel/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,Just-D/chromium-1,hgl888/chromium-crosswalk-efl,littlstar/chromium.src,junmin-zhu/chromium-rivertrail,chuan9/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,fujunwei/chromium-crosswalk,ondra-novak/chromium.src,jaruba/chromium.src,dednal/chromium.src,dushu1203/chromium.src,Pluto-tv/chromium-crosswalk,littlstar/chromium.src,Chilledheart/chromium,zcbenz/cefode-chromium,jaruba/chromium.src,M4sse/chromium.src,keishi/chromium,Pluto-tv/chromium-crosswalk,krieger-od/nwjs_chromium.src,dushu1203/chromium.src,hujiajie/pa-chromium,axinging/chromium-crosswalk,junmin-zhu/chromium-rivertrail,ChromiumWebApps/chromium,krieger-od/nwjs_chromium.src,patrickm/chromium.src,Chilledheart/chromium,Jonekee/chromium.src,fujunwei/chromium-crosswalk,ChromiumWebApps/chromium,anirudhSK/chromium,hujiajie/pa-chromium,chuan9/chromium-crosswalk,ondra-novak/chromium.src,chuan9/chromium-crosswalk,timopulkkinen/BubbleFish,ondra-novak/chromium.src,timopulkkinen/BubbleFish,Jonekee/chromium.src,pozdnyakov/chromium-crosswalk,dushu1203/chromium.src,littlstar/chromium.src,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk,bright-sparks/chromium-spacewalk,markYoungH/chromium.src,nacl-webkit/chrome_deps,ltilve/chromium,markYoungH/chromium.src,mogoweb/chromium-crosswalk,nacl-webkit/chrome_deps,Jonekee/chromium.src,nacl-webkit/chrome_deps,timopulkkinen/BubbleFish,anirudhSK/chromium,M4sse/chromium.src,Fireblend/chromium-crosswalk,anirudhSK/chromium,axinging/chromium-crosswalk,jaruba/chromium.src,fujunwei/chromium-crosswalk,ondra-novak/chromium.src,mohamed--abdel-maksoud/chromium.src,dushu1203/chromium.src,ChromiumWebApps/chromium,bright-sparks/chromium-spacewalk,markYoungH/chromium.src,keishi/chromium,ondra-novak/chromium.src,patrickm/chromium.src,krieger-od/nwjs_chromium.src,junmin-zhu/chromium-rivertrail,ondra-novak/chromium.src,PeterWangIntel/chromium-crosswalk,littlstar/chromium.src,krieger-od/nwjs_chromium.src,M4sse/chromium.src,crosswalk-project/chromium-crosswalk-efl,keishi/chromium,Chilledheart/chromium,timopulkkinen/BubbleFish,jaruba/chromium.src,mohamed--abdel-maksoud/chromium.src,hujiajie/pa-chromium,keishi/chromium,chuan9/chromium-crosswalk,pozdnyakov/chromium-crosswalk,dednal/chromium.src,Just-D/chromium-1,PeterWangIntel/chromium-crosswalk,junmin-zhu/chromium-rivertrail,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk-efl,Just-D/chromium-1,keishi/chromium,mohamed--abdel-maksoud/chromium.src,pozdnyakov/chromium-crosswalk,robclark/chromium,jaruba/chromium.src,Just-D/chromium-1,markYoungH/chromium.src,Chilledheart/chromium,pozdnyakov/chromium-crosswalk,dednal/chromium.src,hgl888/chromium-crosswalk,anirudhSK/chromium,ltilve/chromium,nacl-webkit/chrome_deps,keishi/chromium,dednal/chromium.src,hujiajie/pa-chromium,M4sse/chromium.src,Pluto-tv/chromium-crosswalk,markYoungH/chromium.src,jaruba/chromium.src,littlstar/chromium.src,zcbenz/cefode-chromium,M4sse/chromium.src,bright-sparks/chromium-spacewalk,bright-sparks/chromium-spacewalk,junmin-zhu/chromium-rivertrail,hgl888/chromium-crosswalk-efl,dushu1203/chromium.src,robclark/chromium,mohamed--abdel-maksoud/chromium.src,littlstar/chromium.src,anirudhSK/chromium,ltilve/chromium,TheTypoMaster/chromium-crosswalk,mogoweb/chromium-crosswalk,ltilve/chromium,PeterWangIntel/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,ChromiumWebApps/chromium,axinging/chromium-crosswalk,M4sse/chromium.src,bright-sparks/chromium-spacewalk,timopulkkinen/BubbleFish,pozdnyakov/chromium-crosswalk,axinging/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,hgl888/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,hgl888/chromium-crosswalk-efl,mogoweb/chromium-crosswalk,mogoweb/chromium-crosswalk,zcbenz/cefode-chromium,timopulkkinen/BubbleFish,markYoungH/chromium.src,hgl888/chromium-crosswalk,zcbenz/cefode-chromium,hgl888/chromium-crosswalk,fujunwei/chromium-crosswalk,krieger-od/nwjs_chromium.src,markYoungH/chromium.src,M4sse/chromium.src,axinging/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,zcbenz/cefode-chromium,patrickm/chromium.src,nacl-webkit/chrome_deps,krieger-od/nwjs_chromium.src,Just-D/chromium-1,ltilve/chromium,ChromiumWebApps/chromium,markYoungH/chromium.src,patrickm/chromium.src,pozdnyakov/chromium-crosswalk,patrickm/chromium.src,jaruba/chromium.src,hgl888/chromium-crosswalk,markYoungH/chromium.src,Fireblend/chromium-crosswalk,krieger-od/nwjs_chromium.src,axinging/chromium-crosswalk,junmin-zhu/chromium-rivertrail,dushu1203/chromium.src,bright-sparks/chromium-spacewalk,dednal/chromium.src,littlstar/chromium.src,keishi/chromium,robclark/chromium,PeterWangIntel/chromium-crosswalk,Just-D/chromium-1,Pluto-tv/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,bright-sparks/chromium-spacewalk,M4sse/chromium.src,ltilve/chromium,bright-sparks/chromium-spacewalk,junmin-zhu/chromium-rivertrail,timopulkkinen/BubbleFish,Chilledheart/chromium,TheTypoMaster/chromium-crosswalk,dushu1203/chromium.src,zcbenz/cefode-chromium,anirudhSK/chromium,hujiajie/pa-chromium,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk-efl,Jonekee/chromium.src,bright-sparks/chromium-spacewalk,Chilledheart/chromium,Jonekee/chromium.src,keishi/chromium,ChromiumWebApps/chromium,mohamed--abdel-maksoud/chromium.src,robclark/chromium,pozdnyakov/chromium-crosswalk,mogoweb/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,fujunwei/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,dednal/chromium.src,Jonekee/chromium.src,Just-D/chromium-1,crosswalk-project/chromium-crosswalk-efl,zcbenz/cefode-chromium,mohamed--abdel-maksoud/chromium.src,hujiajie/pa-chromium,zcbenz/cefode-chromium,axinging/chromium-crosswalk,mogoweb/chromium-crosswalk,dushu1203/chromium.src,dushu1203/chromium.src,keishi/chromium,robclark/chromium,mogoweb/chromium-crosswalk,ltilve/chromium,nacl-webkit/chrome_deps,dednal/chromium.src,hujiajie/pa-chromium,chuan9/chromium-crosswalk,nacl-webkit/chrome_deps,anirudhSK/chromium,axinging/chromium-crosswalk,Chilledheart/chromium,hgl888/chromium-crosswalk-efl,TheTypoMaster/chromium-crosswalk,hujiajie/pa-chromium,Jonekee/chromium.src,Pluto-tv/chromium-crosswalk,keishi/chromium,mohamed--abdel-maksoud/chromium.src,Pluto-tv/chromium-crosswalk,Fireblend/chromium-crosswalk,nacl-webkit/chrome_deps,dednal/chromium.src,zcbenz/cefode-chromium