X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchrome%2Fbrowser%2Fui%2Fviews%2Ffirst_run_dialog.cc;h=d6b554e6197327fcbca36f14063ebc66d4efb3bb;hb=ff3e2503a20db9193d323c1d19c38c68004dec4a;hp=38316c4f75f94e22f54c9de6b114aac7f92f1280;hpb=7338fba38ba696536d1cc9d389afd716a6ab2fe6;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chrome/browser/ui/views/first_run_dialog.cc b/src/chrome/browser/ui/views/first_run_dialog.cc index 38316c4..d6b554e 100644 --- a/src/chrome/browser/ui/views/first_run_dialog.cc +++ b/src/chrome/browser/ui/views/first_run_dialog.cc @@ -65,7 +65,7 @@ bool FirstRunDialog::Show(Profile* profile) { aura::Window* anchor = dialog->GetWidget()->GetNativeWindow(); aura::client::DispatcherClient* client = aura::client::GetDispatcherClient(anchor->GetRootWindow()); - client->RunWithDispatcher(dialog, anchor, true); + client->RunWithDispatcher(dialog, anchor); dialog_shown = true; } #endif // defined(GOOGLE_CHROME_BUILD) @@ -139,7 +139,9 @@ void FirstRunDialog::LinkClicked(views::Link* source, int event_flags) { platform_util::OpenExternal(profile_, GURL(chrome::kLearnMoreReportingURL)); } -bool FirstRunDialog::Dispatch(const base::NativeEvent& event) { - aura::Env::GetInstance()->GetDispatcher()->Dispatch(event); - return should_show_dialog_; +uint32_t FirstRunDialog::Dispatch(const base::NativeEvent& event) { + uint32_t action = POST_DISPATCH_PERFORM_DEFAULT; + if (!should_show_dialog_) + action |= POST_DISPATCH_QUIT_LOOP; + return action; }