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

Issue 2378803003: [Offline Pages] Added OfflinePageEvaluationBridge for testing. (Closed)

Created:
4 years, 2 months ago by romax
Modified:
4 years, 2 months ago
CC:
chromium-reviews, dewittj+watch_chromium.org, fgorski+watch_chromium.org, romax+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, agrieve+watch_chromium.org, dimich+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Offline Pages] Added OfflinePageEvaluationBridge for testing. Build another bridge for evaluation tests use only. This is part of a larger change tracked in the bug. The bridge exposes some testing only interface and implements another observer. The bridge would not be compiled for official build, and currently there seems no way to have testing-only JNI code without marking with build flags. BUG=646947 Committed: https://crrev.com/3f2464af861c43de538fd23801b12931b93c004a Cr-Commit-Position: refs/heads/master@{#425419}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Build changed. #

Total comments: 10

Patch Set 3 : Using is_official_build to guard test only code. #

Patch Set 4 : Addressed comments. #

Total comments: 12

Patch Set 5 : Addressed comments from dfalcantara@. #

Patch Set 6 : Adding request_notifier.h into build file. #

Patch Set 7 : Fixing build. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+532 lines, -0 lines) Patch
A chrome/android/java/src/org/chromium/chrome/browser/offlinepages/evaluation/OfflinePageEvaluationBridge.java View 1 2 3 4 5 6 1 chunk +195 lines, -0 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
A chrome/browser/android/offline_pages/evaluation/offline_page_evaluation_bridge.h View 3 1 chunk +93 lines, -0 lines 0 comments Download
A chrome/browser/android/offline_pages/evaluation/offline_page_evaluation_bridge.cc View 1 2 3 4 1 chunk +215 lines, -0 lines 0 comments Download
M components/offline_pages/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M components/offline_pages/background/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/offline_pages/background/request_notifier.h View 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 38 (24 generated)
romax
Pete PTAL. I also have some questions regarding build files, can we please have a ...
4 years, 2 months ago (2016-09-29 02:21:13 UTC) #2
Pete Williamson
Sorry this took so long, here are my comments. Let me know when you want ...
4 years, 2 months ago (2016-10-04 23:50:55 UTC) #3
agrieve
lgtm - but I think it'd be nice to add a comment to all of ...
4 years, 2 months ago (2016-10-11 14:02:45 UTC) #5
romax
petewil@ PTAL offline_pages related changes dfalcantara@ PTAL chrome_jni_registrar.cc please suggest if there's better way to ...
4 years, 2 months ago (2016-10-11 21:46:30 UTC) #8
Pete Williamson
Changes look good. One question. Also, Doug thought of another approach - what if you ...
4 years, 2 months ago (2016-10-11 22:25:18 UTC) #9
agrieve
https://codereview.chromium.org/2378803003/diff/60001/chrome/android/java_sources.gni File chrome/android/java_sources.gni (right): https://codereview.chromium.org/2378803003/diff/60001/chrome/android/java_sources.gni#newcode1086 chrome/android/java_sources.gni:1086: if (!is_official_build) { On 2016/10/11 22:25:18, Pete Williamson wrote: ...
4 years, 2 months ago (2016-10-12 01:50:50 UTC) #10
Pete Williamson
lgtm Since this doesn't build in chromium, it should be fine to check in.
4 years, 2 months ago (2016-10-12 17:47:05 UTC) #11
gone
lgtm % nits https://chromiumcodereview.appspot.com/2378803003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/evaluation/OfflinePageEvaluationBridge.java File chrome/android/java/src/org/chromium/chrome/browser/offlinepages/evaluation/OfflinePageEvaluationBridge.java (right): https://chromiumcodereview.appspot.com/2378803003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/evaluation/OfflinePageEvaluationBridge.java#newcode54 chrome/android/java/src/org/chromium/chrome/browser/offlinepages/evaluation/OfflinePageEvaluationBridge.java:54: public abstract static class OfflinePageEvaluationObserver { ...
4 years, 2 months ago (2016-10-13 17:56:59 UTC) #12
romax
Addressed comments, will run on try bots before commit. https://chromiumcodereview.appspot.com/2378803003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/evaluation/OfflinePageEvaluationBridge.java File chrome/android/java/src/org/chromium/chrome/browser/offlinepages/evaluation/OfflinePageEvaluationBridge.java (right): https://chromiumcodereview.appspot.com/2378803003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/evaluation/OfflinePageEvaluationBridge.java#newcode54 chrome/android/java/src/org/chromium/chrome/browser/offlinepages/evaluation/OfflinePageEvaluationBridge.java:54: ...
4 years, 2 months ago (2016-10-13 18:46:23 UTC) #13
romax
petewil@ can you please take another look? I've changed some files in Patch 6 and ...
4 years, 2 months ago (2016-10-13 22:34:20 UTC) #26
Pete Williamson
lgtm
4 years, 2 months ago (2016-10-14 19:00:07 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2378803003/120001
4 years, 2 months ago (2016-10-14 19:10:28 UTC) #34
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 2 months ago (2016-10-14 19:17:33 UTC) #36
commit-bot: I haz the power
4 years, 2 months ago (2016-10-14 19:19:17 UTC) #38
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/3f2464af861c43de538fd23801b12931b93c004a
Cr-Commit-Position: refs/heads/master@{#425419}

Powered by Google App Engine
This is Rietveld 408576698