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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_view.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
« no previous file with comments | « chrome/browser/ui/gtk/location_bar_view_gtk.cc ('k') | chrome/common/extensions/api/extension_api.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/location_bar/location_bar_view.cc
===================================================================
--- chrome/browser/ui/views/location_bar/location_bar_view.cc (revision 98485)
+++ chrome/browser/ui/views/location_bar/location_bar_view.cc (working copy)
@@ -111,7 +111,7 @@
model_(model),
delegate_(delegate),
disposition_(CURRENT_TAB),
- transition_(PageTransition::LINK),
+ transition_(PageTransition::TYPED | PageTransition::FROM_ADDRESS_BAR),
location_icon_view_(NULL),
ev_bubble_view_(NULL),
location_entry_view_(NULL),
@@ -806,7 +806,7 @@
if (url.is_valid()) {
location_input_ = UTF8ToUTF16(url.spec());
disposition_ = disposition;
- transition_ = transition;
+ transition_ = transition | PageTransition::FROM_ADDRESS_BAR;
if (browser_->command_updater()) {
if (!alternate_nav_url.is_valid()) {
« no previous file with comments | « chrome/browser/ui/gtk/location_bar_view_gtk.cc ('k') | chrome/common/extensions/api/extension_api.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698