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

Unified Diff: content/browser/web_contents/debug_urls.cc

Issue 10269003: Allow a pasted-in crash URL to work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/debug_urls.cc
diff --git a/content/browser/web_contents/debug_urls.cc b/content/browser/web_contents/debug_urls.cc
index 05f9c410bb5320d152d823f8c5cf3ff58835e759..94b1b2b295fc467e6d4c26981466290c7bc69296 100644
--- a/content/browser/web_contents/debug_urls.cc
+++ b/content/browser/web_contents/debug_urls.cc
@@ -13,7 +13,10 @@ namespace content {
bool HandleDebugURL(const GURL& url, content::PageTransition transition) {
content::PageTransition base_transition =
content::PageTransitionStripQualifier(transition);
- if (base_transition != content::PAGE_TRANSITION_TYPED)
+ bool user_initiated =
+ transition & content::PAGE_TRANSITION_FROM_ADDRESS_BAR ||
Peter Kasting 2012/04/30 18:07:37 I think if you have this bit you can (and should)
+ base_transition == content::PAGE_TRANSITION_TYPED;
+ if (!user_initiated)
return false;
if (url.host() == chrome::kChromeUIBrowserCrashHost) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698