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

Unified Diff: chrome/browser/ui/browser_navigator.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/browser_navigator.cc
===================================================================
--- chrome/browser/ui/browser_navigator.cc (revision 98485)
+++ chrome/browser/ui/browser_navigator.cc (working copy)
@@ -369,8 +369,13 @@
// inform the target TabContents, and we may need to update the UI.
PageTransition::Type base_transition =
PageTransition::StripQualifier(params->transition);
- bool user_initiated = base_transition == PageTransition::TYPED ||
- base_transition == PageTransition::AUTO_BOOKMARK;
+ bool user_initiated = params->transition & PageTransition::FROM_ADDRESS_BAR ||
+ base_transition == PageTransition::TYPED ||
+ base_transition == PageTransition::AUTO_BOOKMARK ||
+ base_transition == PageTransition::GENERATED ||
+ base_transition == PageTransition::START_PAGE ||
+ base_transition == PageTransition::RELOAD ||
+ base_transition == PageTransition::KEYWORD;
// Check if this is a singleton tab that already exists
int singleton_index = GetIndexOfSingletonTab(params);
« no previous file with comments | « chrome/browser/metrics/metrics_service.cc ('k') | chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698