Changes aura::Window::observers_ to not notify observers that are added while the Window is in the process of notifying observers. I need this for the new worskpace code that can end up attaching new observers during a notification (happens when a state change triggers moving to a different window). If the new observers are also notified of the change they get confused.
Changes aura::Window::observers_ to not notify observers that are
added while the Window is in the process of notifying observers. I
need this for the new worskpace code that can end up attaching new
observers during a notification (happens when a state change triggers
moving to a different window). If the new observers are also notified
of the change they get confused.

BUG=136919
TEST=none
R=ben@chromium.org


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

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

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