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

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 97032)
+++ chrome/browser/ui/browser_navigator.cc (working copy)
@@ -367,8 +367,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 ||
sky 2011/08/18 00:13:00 How unlike you not to use () around all these.
+ base_transition == PageTransition::TYPED ||
+ base_transition == PageTransition::AUTO_BOOKMARK ||
+ base_transition == PageTransition::GENERATED ||
+ base_transition == PageTransition::START_PAGE ||
sky 2011/08/18 00:13:00 How come you're adding START_PAGE here?
Peter Kasting 2011/08/18 00:53:39 It seemed like starting the browser ought to quali
sky 2011/08/19 17:34:35 Peter stopped by and we talked about START_PAGE. S
+ base_transition == PageTransition::RELOAD ||
+ base_transition == PageTransition::KEYWORD;
// Check if this is a singleton tab that already exists
int singleton_index = GetIndexOfSingletonTab(params);

Powered by Google App Engine
This is Rietveld 408576698