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

Unified Diff: chrome/browser/ui/fast_unload_controller.cc

Issue 1094153002: Move ClosePage() from RenderViewHost to WebContents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: chrome/browser/ui/fast_unload_controller.cc
diff --git a/chrome/browser/ui/fast_unload_controller.cc b/chrome/browser/ui/fast_unload_controller.cc
index 8929457b087a01d392a79fe376d064435b9fb09d..0a669ef25fec0847058cfa5168488d5bf8d1d81a 100644
--- a/chrome/browser/ui/fast_unload_controller.cc
+++ b/chrome/browser/ui/fast_unload_controller.cc
@@ -422,7 +422,7 @@ void FastUnloadController::ProcessPendingTabs() {
CoreTabHelper::FromWebContents(contents);
core_tab_helper->OnUnloadStarted();
DetachWebContents(contents);
- contents->GetRenderViewHost()->ClosePage();
+ contents->ClosePage();
}
}

Powered by Google App Engine
This is Rietveld 408576698