| Index: chrome/browser/android/offline_pages/recent_tab_helper.cc
|
| diff --git a/chrome/browser/android/offline_pages/recent_tab_helper.cc b/chrome/browser/android/offline_pages/recent_tab_helper.cc
|
| index 308afd1ff5bfe5beb63a2ff441fccec05bc57f03..156db98363798239e5ba6de0ea6115729f2de36a 100644
|
| --- a/chrome/browser/android/offline_pages/recent_tab_helper.cc
|
| +++ b/chrome/browser/android/offline_pages/recent_tab_helper.cc
|
| @@ -163,8 +163,8 @@ bool RecentTabHelper::EnsureInitialized() {
|
| if (snapshot_controller_) // Initialized already.
|
| return snapshots_enabled_;
|
|
|
| - snapshot_controller_.reset(
|
| - new SnapshotController(base::ThreadTaskRunnerHandle::Get(), this));
|
| + snapshot_controller_ = SnapshotController::CreateForForegroundOfflining(
|
| + base::ThreadTaskRunnerHandle::Get(), this);
|
| snapshot_controller_->Stop(); // It is reset when navigation commits.
|
|
|
| int tab_id_number = 0;
|
|
|