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

Issue 1899433002: Update flags used by offline pages and bookmarks (Closed)

Created:
4 years, 8 months ago by jianli
Modified:
4 years, 8 months ago
Reviewers:
Ted C, Lei Zhang, mmenke, fgorski
CC:
asvitkine+watch_chromium.org, browser-components-watch_chromium.org, cbentzel+watch_chromium.org, chromium-reviews, dimich+watch_chromium.org, markusheintz_, noyau+watch_chromium.org, tfarina, edwardjung
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update flags used by offline pages and bookmarks Offline pages have been removed from bookmarks UI. We're updating flags used by various offline page features. For capability to save offline copy automatically for bookmarked pages, "OfflineBookmarks" is introduced. The old flag "OfflinePages" is removed. We keep IsOfflinePagesEnabled() as a way to tell if any of offline features is enabled. BUG=603940 Committed: https://crrev.com/5e9585c1f10b97051840ffc0532922089b39877c Cr-Commit-Position: refs/heads/master@{#388920}

Patch Set 1 #

Total comments: 18

Patch Set 2 : Address feedback #

Total comments: 4

Patch Set 3 : Address more feedback #

Patch Set 4 : Rebase #

Patch Set 5 : Fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -421 lines) Patch
M chrome/android/BUILD.gn View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/android/chrome_apk.gyp View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeSwitches.java View 1 chunk +0 lines, -26 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java View 1 2 3 3 chunks +6 lines, -14 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java View 1 2 3 6 chunks +32 lines, -53 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageUtils.java View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridgeTest.java View 1 2 3 4 5 chunks +9 lines, -105 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageUtilsTest.java View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 1 chunk +4 lines, -10 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 3 chunks +3 lines, -14 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_bridge.cc View 1 2 3 1 chunk +13 lines, -2 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_tab_helper_unittest.cc View 2 chunks +10 lines, -7 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_utils_unittest.cc View 1 2 3 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M components/error_page/common/localized_error.cc View 1 2 3 1 chunk +0 lines, -16 lines 0 comments Download
M components/error_page_strings.grdp View 1 2 3 1 chunk +0 lines, -8 lines 0 comments Download
M components/offline_pages.gypi View 2 chunks +0 lines, -11 lines 0 comments Download
M components/offline_pages/BUILD.gn View 2 chunks +0 lines, -8 lines 0 comments Download
M components/offline_pages/offline_page_feature.h View 1 2 3 1 chunk +6 lines, -14 lines 0 comments Download
M components/offline_pages/offline_page_feature.cc View 1 2 1 chunk +12 lines, -65 lines 0 comments Download
M components/offline_pages/offline_page_model_unittest.cc View 1 2 3 2 chunks +40 lines, -14 lines 0 comments Download
D components/offline_pages/offline_page_switches.h View 1 chunk +0 lines, -17 lines 0 comments Download
D components/offline_pages/offline_page_switches.cc View 1 chunk +0 lines, -23 lines 0 comments Download

Messages

Total messages: 23 (9 generated)
jianli
4 years, 8 months ago (2016-04-16 00:40:42 UTC) #2
fgorski
https://codereview.chromium.org/1899433002/diff/1/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/1899433002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java#newcode187 chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java:187: public static int getFeatureMode() { This method is gone ...
4 years, 8 months ago (2016-04-18 17:09:37 UTC) #3
jianli
https://codereview.chromium.org/1899433002/diff/1/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/1899433002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java#newcode187 chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java:187: public static int getFeatureMode() { On 2016/04/18 17:09:36, fgorski ...
4 years, 8 months ago (2016-04-18 21:17:01 UTC) #4
fgorski
lgtm with 2 missed changes. https://codereview.chromium.org/1899433002/diff/20001/components/offline_pages/offline_page_feature.cc File components/offline_pages/offline_page_feature.cc (right): https://codereview.chromium.org/1899433002/diff/20001/components/offline_pages/offline_page_feature.cc#newcode36 components/offline_pages/offline_page_feature.cc:36: IsOfflineBookmarksEnabled(); remove. the features ...
4 years, 8 months ago (2016-04-18 22:40:02 UTC) #5
jianli
https://codereview.chromium.org/1899433002/diff/20001/components/offline_pages/offline_page_feature.cc File components/offline_pages/offline_page_feature.cc (right): https://codereview.chromium.org/1899433002/diff/20001/components/offline_pages/offline_page_feature.cc#newcode36 components/offline_pages/offline_page_feature.cc:36: IsOfflineBookmarksEnabled(); On 2016/04/18 22:40:02, fgorski wrote: > remove. the ...
4 years, 8 months ago (2016-04-18 23:09:05 UTC) #6
jianli
tedchoc, for clank changes. mmenke, for error page changes. For now, we only remove the ...
4 years, 8 months ago (2016-04-20 00:52:43 UTC) #10
Ted C
On 2016/04/20 00:52:43, jianli wrote: > tedchoc, for clank changes. > > mmenke, for error ...
4 years, 8 months ago (2016-04-20 16:44:11 UTC) #11
mmenke
On 2016/04/20 16:44:11, Ted C wrote: > On 2016/04/20 00:52:43, jianli wrote: > > tedchoc, ...
4 years, 8 months ago (2016-04-21 16:37:40 UTC) #12
mmenke
[+edwardjung]: FYI
4 years, 8 months ago (2016-04-21 16:39:03 UTC) #13
jianli
thestig, could you please approve chrome/browser changes? thanks
4 years, 8 months ago (2016-04-21 21:57:53 UTC) #15
Lei Zhang
On 2016/04/21 21:57:53, jianli wrote: > thestig, could you please approve chrome/browser changes? thanks non-Android ...
4 years, 8 months ago (2016-04-21 22:01:34 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899433002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899433002/100001
4 years, 8 months ago (2016-04-21 22:07:18 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 8 months ago (2016-04-21 22:13:43 UTC) #21
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:40:23 UTC) #23
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/5e9585c1f10b97051840ffc0532922089b39877c
Cr-Commit-Position: refs/heads/master@{#388920}

Powered by Google App Engine
This is Rietveld 408576698