| Index: chrome/test/base/browser_with_test_window_test.cc
|
| diff --git a/chrome/test/base/browser_with_test_window_test.cc b/chrome/test/base/browser_with_test_window_test.cc
|
| index b2dda01e98cfe9b81ef29c516fd7b2d7ff3ae389..cfb71ad971982b7917b97a9c44c26ce5160ff5e1 100644
|
| --- a/chrome/test/base/browser_with_test_window_test.cc
|
| +++ b/chrome/test/base/browser_with_test_window_test.cc
|
| @@ -183,10 +183,11 @@ void BrowserWithTestWindowTest::NavigateAndCommitActiveTabWithTitle(
|
| Browser* navigating_browser,
|
| const GURL& url,
|
| const base::string16& title) {
|
| - NavigationController* controller = &navigating_browser->tab_strip_model()->
|
| - GetActiveWebContents()->GetController();
|
| + WebContents* contents =
|
| + navigating_browser->tab_strip_model()->GetActiveWebContents();
|
| + NavigationController* controller = &contents->GetController();
|
| NavigateAndCommit(controller, url);
|
| - controller->GetActiveEntry()->SetTitle(title);
|
| + contents->UpdateTitleForEntry(controller->GetActiveEntry(), title);
|
| }
|
|
|
| void BrowserWithTestWindowTest::DestroyBrowserAndProfile() {
|
|
|