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

Unified Diff: content/browser/tab_contents/navigation_entry.cc

Issue 8224023: Don't show URL for pending new navigations initiated by the renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge conflicts. Created 9 years, 2 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: content/browser/tab_contents/navigation_entry.cc
diff --git a/content/browser/tab_contents/navigation_entry.cc b/content/browser/tab_contents/navigation_entry.cc
index a74e144c27c2db294fd47830fad2e88c9bab85ca..22f421ca841f86f69bf3bd384214316c830b3edc 100644
--- a/content/browser/tab_contents/navigation_entry.cc
+++ b/content/browser/tab_contents/navigation_entry.cc
@@ -42,7 +42,8 @@ NavigationEntry::NavigationEntry()
page_id_(-1),
transition_type_(content::PAGE_TRANSITION_LINK),
has_post_data_(false),
- restore_type_(RESTORE_NONE) {
+ restore_type_(RESTORE_NONE),
+ is_renderer_initiated_(false) {
}
NavigationEntry::NavigationEntry(SiteInstance* instance,
@@ -50,7 +51,8 @@ NavigationEntry::NavigationEntry(SiteInstance* instance,
const GURL& url,
const GURL& referrer,
const string16& title,
- content::PageTransition transition_type)
+ content::PageTransition transition_type,
+ bool is_renderer_initiated)
: unique_id_(GetUniqueID()),
site_instance_(instance),
page_type_(NORMAL_PAGE),
@@ -61,7 +63,8 @@ NavigationEntry::NavigationEntry(SiteInstance* instance,
page_id_(page_id),
transition_type_(transition_type),
has_post_data_(false),
- restore_type_(RESTORE_NONE) {
+ restore_type_(RESTORE_NONE),
+ is_renderer_initiated_(is_renderer_initiated) {
}
NavigationEntry::~NavigationEntry() {
« no previous file with comments | « content/browser/tab_contents/navigation_entry.h ('k') | content/browser/tab_contents/navigation_entry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698