| Index: chrome/browser/sessions/session_restore_browsertest.cc
|
| diff --git a/chrome/browser/sessions/session_restore_browsertest.cc b/chrome/browser/sessions/session_restore_browsertest.cc
|
| index 1f74e1ea23fdb37d17b317ec6d4a050831d9b49a..23b0a2ba3040cc6c9e7ceaa68e832b4d1607ca2f 100644
|
| --- a/chrome/browser/sessions/session_restore_browsertest.cc
|
| +++ b/chrome/browser/sessions/session_restore_browsertest.cc
|
| @@ -52,6 +52,7 @@
|
| #include "content/public/browser/navigation_entry.h"
|
| #include "content/public/browser/notification_service.h"
|
| #include "content/public/browser/notification_types.h"
|
| +#include "content/public/browser/render_frame_host.h"
|
| #include "content/public/browser/render_process_host.h"
|
| #include "content/public/browser/render_view_host.h"
|
| #include "content/public/browser/web_contents.h"
|
| @@ -914,35 +915,35 @@ IN_PROC_BROWSER_TEST_F(SessionRestoreTest, MemoryPressureLoadsNotAllTabs) {
|
| IN_PROC_BROWSER_TEST_F(SessionRestoreTest, RestoreWebUI) {
|
| const GURL webui_url("chrome://omnibox");
|
| ui_test_utils::NavigateToURL(browser(), webui_url);
|
| - const content::WebContents* old_tab =
|
| + content::WebContents* old_tab =
|
| browser()->tab_strip_model()->GetActiveWebContents();
|
| EXPECT_EQ(content::BINDINGS_POLICY_WEB_UI,
|
| - old_tab->GetRenderViewHost()->GetEnabledBindings());
|
| + old_tab->GetMainFrame()->GetEnabledBindings());
|
|
|
| Browser* new_browser = QuitBrowserAndRestore(browser(), 1);
|
| ASSERT_EQ(1u, active_browser_list_->size());
|
| - const content::WebContents* new_tab =
|
| + content::WebContents* new_tab =
|
| new_browser->tab_strip_model()->GetActiveWebContents();
|
| EXPECT_EQ(webui_url, new_tab->GetURL());
|
| EXPECT_EQ(content::BINDINGS_POLICY_WEB_UI,
|
| - new_tab->GetRenderViewHost()->GetEnabledBindings());
|
| + new_tab->GetMainFrame()->GetEnabledBindings());
|
| }
|
|
|
| IN_PROC_BROWSER_TEST_F(SessionRestoreTest, RestoreWebUISettings) {
|
| const GURL webui_url("chrome://settings");
|
| ui_test_utils::NavigateToURL(browser(), webui_url);
|
| - const content::WebContents* old_tab =
|
| + content::WebContents* old_tab =
|
| browser()->tab_strip_model()->GetActiveWebContents();
|
| EXPECT_EQ(content::BINDINGS_POLICY_WEB_UI,
|
| - old_tab->GetRenderViewHost()->GetEnabledBindings());
|
| + old_tab->GetMainFrame()->GetEnabledBindings());
|
|
|
| Browser* new_browser = QuitBrowserAndRestore(browser(), 1);
|
| ASSERT_EQ(1u, active_browser_list_->size());
|
| - const content::WebContents* new_tab =
|
| + content::WebContents* new_tab =
|
| new_browser->tab_strip_model()->GetActiveWebContents();
|
| EXPECT_EQ(webui_url, new_tab->GetURL());
|
| EXPECT_EQ(content::BINDINGS_POLICY_WEB_UI,
|
| - new_tab->GetRenderViewHost()->GetEnabledBindings());
|
| + new_tab->GetMainFrame()->GetEnabledBindings());
|
| }
|
|
|
| IN_PROC_BROWSER_TEST_F(SessionRestoreTest, RestoresForwardAndBackwardNavs) {
|
|
|