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

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

Issue 2705453003: Last_n: disable on Svelte devices. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/android/offline_pages/recent_tab_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/offline_pages/recent_tab_helper.h
diff --git a/chrome/browser/android/offline_pages/recent_tab_helper.h b/chrome/browser/android/offline_pages/recent_tab_helper.h
index b5f095f846243f537d86c6dca0ce979844915603..3e40c1ea8fbc70b3ecff5d803ccade672b16e316 100644
--- a/chrome/browser/android/offline_pages/recent_tab_helper.h
+++ b/chrome/browser/android/offline_pages/recent_tab_helper.h
@@ -87,6 +87,7 @@ class RecentTabHelper
explicit RecentTabHelper(content::WebContents* web_contents);
friend class content::WebContentsUserData<RecentTabHelper>;
+ FRIEND_TEST_ALL_PREFIXES(RecentTabHelperTest, LastNDisabledOnSvelte);
Dmitry Titov 2017/02/16 20:58:41 Could we add a getter on Delegate to return whethe
carlosk 2017/02/16 21:48:16 Done. I also added a getter for the initial test d
bool EnsureInitialized();
void ContinueSnapshotWithIdsToPurge(SnapshotProgressInfo* snapshot_info,
@@ -152,6 +153,9 @@ class RecentTabHelper
SnapshotController::PageQuality last_n_latest_saved_quality_ =
SnapshotController::PageQuality::POOR;
+ // Cached value of whether low end device. Overwritable for testing.
+ bool is_low_end_device_;
+
base::WeakPtrFactory<RecentTabHelper> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(RecentTabHelper);
« no previous file with comments | « no previous file | chrome/browser/android/offline_pages/recent_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698