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

Unified Diff: chrome/browser/gtk/external_protocol_dialog_gtk.cc

Issue 240002: Hook up external protocol handler to user gestures to prevent malicious sites... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 months 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 | « chrome/browser/external_protocol_handler.cc ('k') | chrome/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/external_protocol_dialog_gtk.cc
===================================================================
--- chrome/browser/gtk/external_protocol_dialog_gtk.cc (revision 26890)
+++ chrome/browser/gtk/external_protocol_dialog_gtk.cc (working copy)
@@ -8,6 +8,7 @@
#include "app/l10n_util.h"
#include "base/histogram.h"
+#include "base/message_loop.h"
#include "chrome/browser/external_protocol_handler.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/browser/tab_contents/tab_contents_view.h"
@@ -37,6 +38,7 @@
ExternalProtocolDialogGtk::ExternalProtocolDialogGtk(const GURL& url)
: url_(url),
creation_time_(base::Time::Now()) {
+ DCHECK_EQ(MessageLoop::TYPE_UI, MessageLoop::current()->type());
dialog_ = gtk_dialog_new_with_buttons(
l10n_util::GetStringUTF8(IDS_EXTERNAL_PROTOCOL_TITLE).c_str(),
« no previous file with comments | « chrome/browser/external_protocol_handler.cc ('k') | chrome/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698