diff options
Diffstat (limited to 'chrome/browser/tabs')
-rw-r--r-- | chrome/browser/tabs/tab_strip_model.cc | 10 | ||||
-rw-r--r-- | chrome/browser/tabs/tab_strip_model_unittest.cc | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/chrome/browser/tabs/tab_strip_model.cc b/chrome/browser/tabs/tab_strip_model.cc index 5eca928..c9731b1 100644 --- a/chrome/browser/tabs/tab_strip_model.cc +++ b/chrome/browser/tabs/tab_strip_model.cc @@ -25,13 +25,13 @@ #include "chrome/common/chrome_notification_types.h" #include "chrome/common/extensions/extension.h" #include "chrome/common/url_constants.h" -#include "content/browser/renderer_host/render_process_host.h" #include "content/browser/tab_contents/navigation_controller.h" #include "content/browser/tab_contents/tab_contents.h" #include "content/browser/tab_contents/tab_contents_delegate.h" #include "content/browser/tab_contents/tab_contents_view.h" #include "content/browser/user_metrics.h" #include "content/public/browser/notification_service.h" +#include "content/public/browser/render_process_host.h" namespace { @@ -1139,12 +1139,12 @@ bool TabStripModel::InternalCloseTabs(const std::vector<int>& in_indices, if (browser_shutdown::GetShutdownType() == browser_shutdown::NOT_VALID) { // Construct a map of processes to the number of associated tabs that are // closing. - std::map<RenderProcessHost*, size_t> processes; + std::map<content::RenderProcessHost*, size_t> processes; for (size_t i = 0; i < indices.size(); ++i) { TabContentsWrapper* detached_contents = GetContentsAt(indices[i]); - RenderProcessHost* process = + content::RenderProcessHost* process = detached_contents->tab_contents()->GetRenderProcessHost(); - std::map<RenderProcessHost*, size_t>::iterator iter = + std::map<content::RenderProcessHost*, size_t>::iterator iter = processes.find(process); if (iter == processes.end()) { processes[process] = 1; @@ -1154,7 +1154,7 @@ bool TabStripModel::InternalCloseTabs(const std::vector<int>& in_indices, } // Try to fast shutdown the tabs that can close. - for (std::map<RenderProcessHost*, size_t>::iterator iter = + for (std::map<content::RenderProcessHost*, size_t>::iterator iter = processes.begin(); iter != processes.end(); ++iter) { iter->first->FastShutdownForPageCount(iter->second); diff --git a/chrome/browser/tabs/tab_strip_model_unittest.cc b/chrome/browser/tabs/tab_strip_model_unittest.cc index 635097c..9267058 100644 --- a/chrome/browser/tabs/tab_strip_model_unittest.cc +++ b/chrome/browser/tabs/tab_strip_model_unittest.cc @@ -1747,7 +1747,7 @@ TEST_F(TabStripModelTest, FastShutdown) { // On a mock RPH this checks whether we *attempted* fast shutdown. // A real RPH would reject our attempt since there is an unload handler. EXPECT_TRUE(contents1->tab_contents()-> - GetRenderProcessHost()->fast_shutdown_started()); + GetRenderProcessHost()->FastShutdownStarted()); EXPECT_EQ(2, tabstrip.count()); delegate.set_run_unload_listener(false); @@ -1770,7 +1770,7 @@ TEST_F(TabStripModelTest, FastShutdown) { tabstrip.CloseTabContentsAt(1, TabStripModel::CLOSE_NONE); EXPECT_FALSE(contents1->tab_contents()-> - GetRenderProcessHost()->fast_shutdown_started()); + GetRenderProcessHost()->FastShutdownStarted()); EXPECT_EQ(1, tabstrip.count()); tabstrip.CloseAllTabs(); |