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

Unified Diff: chrome/browser/android/offline_pages/recent_tab_helper.cc

Issue 2822023002: [Offline pages]: Move logic for whether to consider the DocumentAvailableInMainFrame signal to the … (Closed)
Patch Set: code review changes Created 3 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/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 f248220fa487c9f93c2255b461f8081c191ff694..f7b56c04aacadcbf45965c52d9668dfcfe25bd98 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_.reset(SnapshotController::CreateForForegroundOfflining(
+ base::ThreadTaskRunnerHandle::Get(), this));
snapshot_controller_->Stop(); // It is reset when navigation commits.
int tab_id_number = 0;

Powered by Google App Engine
This is Rietveld 408576698