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

Issue 1772233003: Flag for Background Loading of Offline Pages. (Closed)

Created:
4 years, 9 months ago by Pete Williamson
Modified:
4 years, 9 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, fgorski, dougarnett
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Flag for Background Loading of Offline Pages. This is a flag for the experimental background loading feature of offline pages. It defaults to off. BUG= Committed: https://crrev.com/468bbb93164bfede8ed6f1e5412a3893d3078070 Cr-Commit-Position: refs/heads/master@{#381334}

Patch Set 1 #

Total comments: 8

Patch Set 2 : CR fixes per fgorski #

Total comments: 4

Patch Set 3 : Adjust line spacing #

Total comments: 2

Patch Set 4 : Remove unused message #

Patch Set 5 : Change to use the Feature object to implement the flags. #

Total comments: 2

Patch Set 6 : change flag name #

Total comments: 4

Patch Set 7 : ASvitkine CR feedback #

Patch Set 8 : Call static function on the class, not object. #

Total comments: 1

Patch Set 9 : turn off flag before test. #

Patch Set 10 : Make method visible to tests #

Patch Set 11 : Make code visible to tests #

Patch Set 12 : Put @VisibleForTesting in the right place. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -2 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +13 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridgeTest.java View 1 2 3 4 5 6 7 8 10 11 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 1 chunk +8 lines, -2 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/android/chrome_feature_list.cc View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M components/offline_pages/offline_page_feature.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M components/offline_pages/offline_page_feature.cc View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M components/offline_pages/offline_page_model_unittest.cc View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (16 generated)
Pete Williamson
4 years, 9 months ago (2016-03-08 23:59:22 UTC) #2
fgorski
Could you run this change by jianli? https://codereview.chromium.org/1772233003/diff/1/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/1772233003/diff/1/chrome/browser/about_flags.cc#newcode534 chrome/browser/about_flags.cc:534: switches::kEnableOfflinePagesAsBookmarks, ""}, ...
4 years, 9 months ago (2016-03-09 18:00:05 UTC) #3
Pete Williamson
CR changes per FGorski@. JianLi@, can you please take a look? https://codereview.chromium.org/1772233003/diff/1/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): ...
4 years, 9 months ago (2016-03-09 20:36:33 UTC) #5
fgorski
lgtm https://codereview.chromium.org/1772233003/diff/20001/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridgeTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridgeTest.java (right): https://codereview.chromium.org/1772233003/diff/20001/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridgeTest.java#newcode265 chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridgeTest.java:265: mOfflinePageBridge.isBackgroundLoadingEnabled()); align to 8 spaces. https://codereview.chromium.org/1772233003/diff/20001/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridgeTest.java#newcode272 chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridgeTest.java:272: mOfflinePageBridge.isBackgroundLoadingEnabled()); ...
4 years, 9 months ago (2016-03-09 20:45:13 UTC) #7
Pete Williamson
Adjusted code alignment. https://codereview.chromium.org/1772233003/diff/20001/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridgeTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridgeTest.java (right): https://codereview.chromium.org/1772233003/diff/20001/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridgeTest.java#newcode265 chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridgeTest.java:265: mOfflinePageBridge.isBackgroundLoadingEnabled()); On 2016/03/09 20:45:13, fgorski wrote: ...
4 years, 9 months ago (2016-03-09 20:51:15 UTC) #8
dougarnett
https://codereview.chromium.org/1772233003/diff/40001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1772233003/diff/40001/chrome/app/generated_resources.grd#newcode14362 chrome/app/generated_resources.grd:14362: + <message name="IDS_FLAGS_ENABLE_OFFLINE_PAGE_BACKGROUND_LOADING" desc= "Option to enable offline pages ...
4 years, 9 months ago (2016-03-09 21:59:57 UTC) #10
Pete Williamson
CR fixes per dougarnet https://codereview.chromium.org/1772233003/diff/40001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1772233003/diff/40001/chrome/app/generated_resources.grd#newcode14362 chrome/app/generated_resources.grd:14362: + <message name="IDS_FLAGS_ENABLE_OFFLINE_PAGE_BACKGROUND_LOADING" desc= "Option ...
4 years, 9 months ago (2016-03-09 22:35:05 UTC) #11
dougarnett
lgtm
4 years, 9 months ago (2016-03-09 23:22:52 UTC) #13
jianli
Please switch to using base::Feature API (see https://codereview.chromium.org/1750883002/ for example).
4 years, 9 months ago (2016-03-11 00:25:00 UTC) #14
Pete Williamson
On 2016/03/11 00:25:00, jianli wrote: > Please switch to using base::Feature API (see > https://codereview.chromium.org/1750883002/ ...
4 years, 9 months ago (2016-03-11 23:01:53 UTC) #15
Pete Williamson
Changed to use the 'FeatureList' way of adding a flag. JianLi, PTAL and see if ...
4 years, 9 months ago (2016-03-11 23:03:19 UTC) #16
jianli
lgtm https://codereview.chromium.org/1772233003/diff/80001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/1772233003/diff/80001/chrome/browser/about_flags.cc#newcode1624 chrome/browser/about_flags.cc:1624: {"offline-pages-backgorund_loading_mode", nit: replace "_" with '-". Also you ...
4 years, 9 months ago (2016-03-12 00:08:30 UTC) #17
Pete Williamson
https://codereview.chromium.org/1772233003/diff/80001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/1772233003/diff/80001/chrome/browser/about_flags.cc#newcode1624 chrome/browser/about_flags.cc:1624: {"offline-pages-backgorund_loading_mode", On 2016/03/12 00:08:30, jianli wrote: > nit: replace ...
4 years, 9 months ago (2016-03-12 00:48:29 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1772233003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1772233003/100001
4 years, 9 months ago (2016-03-12 00:49:22 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/37560)
4 years, 9 months ago (2016-03-12 03:20:35 UTC) #22
Alexei Svitkine (slow)
https://codereview.chromium.org/1772233003/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java File chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java (right): https://codereview.chromium.org/1772233003/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java#newcode545 chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java:545: private static native boolean nativeIsOfflinePagesBackgroundLoadingEnabled(); Optional nit: Up to ...
4 years, 9 months ago (2016-03-14 15:42:48 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1772233003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1772233003/120001
4 years, 9 months ago (2016-03-14 17:36:46 UTC) #26
Pete Williamson
Fixes for ASvitkine. https://codereview.chromium.org/1772233003/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java File chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java (right): https://codereview.chromium.org/1772233003/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java#newcode545 chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java:545: private static native boolean nativeIsOfflinePagesBackgroundLoadingEnabled(); On ...
4 years, 9 months ago (2016-03-14 17:36:52 UTC) #27
Alexei Svitkine (slow)
lgtm
4 years, 9 months ago (2016-03-14 18:11:18 UTC) #28
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/38061)
4 years, 9 months ago (2016-03-14 20:03:52 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1772233003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1772233003/140001
4 years, 9 months ago (2016-03-14 20:30:01 UTC) #32
Pete Williamson
Ted: Please do an OWNERS review for chrome_feature_list file, others have already been reviewed. Thanks!
4 years, 9 months ago (2016-03-14 20:31:28 UTC) #34
Ted C
owners lgtm w/ test comment (non-blocking) https://codereview.chromium.org/1772233003/diff/140001/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridgeTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridgeTest.java (right): https://codereview.chromium.org/1772233003/diff/140001/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridgeTest.java#newcode262 chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridgeTest.java:262: public void testBackgroundLoadSwitch() ...
4 years, 9 months ago (2016-03-14 22:16:41 UTC) #35
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/38148)
4 years, 9 months ago (2016-03-14 23:02:36 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1772233003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1772233003/220001
4 years, 9 months ago (2016-03-15 21:17:32 UTC) #40
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 9 months ago (2016-03-15 22:40:23 UTC) #41
commit-bot: I haz the power
4 years, 9 months ago (2016-03-15 22:41:43 UTC) #43
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/468bbb93164bfede8ed6f1e5412a3893d3078070
Cr-Commit-Position: refs/heads/master@{#381334}

Powered by Google App Engine
This is Rietveld 408576698