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

Unified Diff: chrome/browser/tab_contents/navigation_controller.cc

Issue 4194007: Revert "Refactor automation messages." due to mysterious problems on mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 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: chrome/browser/tab_contents/navigation_controller.cc
diff --git a/chrome/browser/tab_contents/navigation_controller.cc b/chrome/browser/tab_contents/navigation_controller.cc
index 918a9b412a2b1d3f9f5798eeb92058fae0ff0aae..fc753c3f8fa9a0fc5610addba96ceb94bdfdbc0b 100644
--- a/chrome/browser/tab_contents/navigation_controller.cc
+++ b/chrome/browser/tab_contents/navigation_controller.cc
@@ -718,7 +718,7 @@ void NavigationController::RendererDidNavigateToNewPage(
// Don't use the page type from the pending entry. Some interstitial page
// may have set the type to interstitial. Once we commit, however, the page
// type must always be normal.
- new_entry->set_page_type(NORMAL_PAGE);
+ new_entry->set_page_type(NavigationEntry::NORMAL_PAGE);
} else {
new_entry = new NavigationEntry;
}
@@ -1200,7 +1200,8 @@ void NavigationController::InsertEntriesFrom(
size_t insert_index = 0;
for (int i = 0; i < max_index; i++) {
// When cloning a tab, copy all entries except interstitial pages
- if (source.entries_[i].get()->page_type() != INTERSTITIAL_PAGE) {
+ if (source.entries_[i].get()->page_type() !=
+ NavigationEntry::INTERSTITIAL_PAGE) {
entries_.insert(entries_.begin() + insert_index++,
linked_ptr<NavigationEntry>(
new NavigationEntry(*source.entries_[i])));
« no previous file with comments | « chrome/browser/tab_contents/interstitial_page.cc ('k') | chrome/browser/tab_contents/navigation_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698