Fix "Please update your sync passphrase" link on Chrome OS settings.
Fix "Please update your sync passphrase" link on Chrome OS settings.

The link was unconditionally associated with browser restart on Chrome OS,
which made users think the browser crashed.
The action was intended for the case when auth error happened and
needs relogin to refresh the authentication credentials when the message
is "Sign out then sign in again".

For the message "Please update your sync passphrase", don't restart the
browser but just show the dialog to prompt sync passphrase.

Instead of assigning a fixed handler for the element ($(sync-action-link)),
change the action according to whether the message is caused by auth error
or anything else.

BUG=150740
TEST=repro the issue described in 150740, open chrome://settings and click on "Please update your sync passphrase" message.

Review URL: https://codereview.chromium.org/11178004

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

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