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

Issue 2362693003: Add framework for sending feedback for Blimp. (Closed)

Created:
4 years, 2 months ago by nyquist
Modified:
4 years, 2 months ago
CC:
chromium-reviews, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, steimel+watch-blimp_chromium.org, gcasto+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, perumaal+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, dtrainor+watch-blimp_chromium.org, scf+watch-blimp_chromium.org, khushalsagar+watch-blimp_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add framework for sending feedback for Blimp. Before this CL, there was never any information about Blimp included in the feedback data provided to HelpAndFeedback. This CL adds a framework for adding such feedback data. The only field that is currently set is whether Blimp is supported or not, and it is not there unless Blimp is supported. The feedback collection is cross-platform, but it is currently only used for Android, and initiated from Java in the FeedbackCollector. The data needs to end up as a Bundle with only <String, String> data, so the cross platform code also uses a map of strings as keys and values. The JNI-bridge code takes the source map and converts it into a Java object holding a Map<String, String> which is provided to the FeedbackCollector. There is no additional business logic in Java. Since there is no way to pass for example std::unordered_map from C++ to Java, the keys and values are passed as simple Java-arrays during construction of the Java object instead. After the Java object has been constructed, it lives on its own and does not require access to functions in C++. BUG=637988 Committed: https://crrev.com/d98c5c13457fae21894b7413b7407eb0e74d76e1 Cr-Commit-Position: refs/heads/master@{#421136}

Patch Set 1 #

Patch Set 2 : Self review #

Patch Set 3 : Fix Java conversion code and some naming #

Patch Set 4 : Fix extern constants #

Total comments: 4

Patch Set 5 : Addressed comments from dtrainor #

Patch Set 6 : Rebased for good measure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+311 lines, -0 lines) Patch
M blimp/client/app/android/javatests/src/org/chromium/blimp/core/MockBlimpClientContext.java View 2 chunks +8 lines, -0 lines 0 comments Download
M blimp/client/core/BUILD.gn View 5 chunks +5 lines, -0 lines 0 comments Download
M blimp/client/core/android/blimp_client_context_impl_android.h View 1 chunk +4 lines, -0 lines 0 comments Download
M blimp/client/core/android/blimp_client_context_impl_android.cc View 2 chunks +13 lines, -0 lines 0 comments Download
M blimp/client/core/android/java/src/org/chromium/blimp/core/BlimpClientContextImpl.java View 1 2 3 4 4 chunks +14 lines, -0 lines 0 comments Download
M blimp/client/core/android/java/src/org/chromium/blimp/core/DummyBlimpClientContext.java View 2 chunks +8 lines, -0 lines 0 comments Download
M blimp/client/core/blimp_client_context_impl.h View 2 chunks +4 lines, -0 lines 0 comments Download
M blimp/client/core/blimp_client_context_impl.cc View 2 chunks +6 lines, -0 lines 0 comments Download
A blimp/client/core/feedback/BUILD.gn View 1 1 chunk +67 lines, -0 lines 0 comments Download
A blimp/client/core/feedback/android/blimp_feedback_data_android.h View 1 1 chunk +24 lines, -0 lines 0 comments Download
A blimp/client/core/feedback/android/blimp_feedback_data_android.cc View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
A blimp/client/core/feedback/android/java/src/org/chromium/blimp/core/feedback/BlimpFeedbackData.java View 1 2 3 4 1 chunk +46 lines, -0 lines 0 comments Download
A blimp/client/core/feedback/blimp_feedback_data.h View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download
A blimp/client/core/feedback/blimp_feedback_data.cc View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
A blimp/client/core/feedback/blimp_feedback_data_unittest.cc View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download
M blimp/client/public/android/java/src/org/chromium/blimp_public/BlimpClientContext.java View 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/feedback/FeedbackCollector.java View 3 chunks +11 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 20 (13 generated)
nyquist
dtrainor: PTAL
4 years, 2 months ago (2016-09-23 01:21:31 UTC) #4
nyquist
dtrainor: It might be helpful to look at https://codereview.chromium.org/2371503002 which is building on this CL ...
4 years, 2 months ago (2016-09-23 23:02:00 UTC) #10
David Trainor- moved to gerrit
lgtm % nits https://codereview.chromium.org/2362693003/diff/60001/blimp/client/core/android/java/src/org/chromium/blimp/core/BlimpClientContextImpl.java File blimp/client/core/android/java/src/org/chromium/blimp/core/BlimpClientContextImpl.java (right): https://codereview.chromium.org/2362693003/diff/60001/blimp/client/core/android/java/src/org/chromium/blimp/core/BlimpClientContextImpl.java#newcode104 blimp/client/core/android/java/src/org/chromium/blimp/core/BlimpClientContextImpl.java:104: return blimpFeedbackData.toFeedbackMap(); I almost wish it ...
4 years, 2 months ago (2016-09-27 03:39:23 UTC) #12
nyquist
https://codereview.chromium.org/2362693003/diff/60001/blimp/client/core/android/java/src/org/chromium/blimp/core/BlimpClientContextImpl.java File blimp/client/core/android/java/src/org/chromium/blimp/core/BlimpClientContextImpl.java (right): https://codereview.chromium.org/2362693003/diff/60001/blimp/client/core/android/java/src/org/chromium/blimp/core/BlimpClientContextImpl.java#newcode104 blimp/client/core/android/java/src/org/chromium/blimp/core/BlimpClientContextImpl.java:104: return blimpFeedbackData.toFeedbackMap(); On 2016/09/27 03:39:23, David Trainor wrote: > ...
4 years, 2 months ago (2016-09-27 06:20:45 UTC) #13
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/2362693003/100001
4 years, 2 months ago (2016-09-27 06:21:06 UTC) #16
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-09-27 07:17:58 UTC) #18
commit-bot: I haz the power
4 years, 2 months ago (2016-09-27 07:21:25 UTC) #20
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/d98c5c13457fae21894b7413b7407eb0e74d76e1
Cr-Commit-Position: refs/heads/master@{#421136}

Powered by Google App Engine
This is Rietveld 408576698