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

Unified Diff: chrome/browser/ui/gtk/location_bar_view_gtk.cc

Issue 7624031: Treat files downloaded from the address bar as "always safe" (including extensions per discussion... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
Index: chrome/browser/ui/gtk/location_bar_view_gtk.cc
===================================================================
--- chrome/browser/ui/gtk/location_bar_view_gtk.cc (revision 98485)
+++ chrome/browser/ui/gtk/location_bar_view_gtk.cc (working copy)
@@ -165,7 +165,7 @@
toolbar_model_(browser->toolbar_model()),
browser_(browser),
disposition_(CURRENT_TAB),
- transition_(PageTransition::TYPED),
+ transition_(PageTransition::TYPED | PageTransition::FROM_ADDRESS_BAR),
first_run_bubble_(this),
popup_window_mode_(false),
theme_service_(NULL),
@@ -466,7 +466,7 @@
if (url.is_valid()) {
location_input_ = UTF8ToUTF16(url.spec());
disposition_ = disposition;
- transition_ = transition;
+ transition_ = transition | PageTransition::FROM_ADDRESS_BAR;
if (command_updater_) {
if (!alternate_nav_url.is_valid()) {

Powered by Google App Engine
This is Rietveld 408576698