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

Issue 1678943002: DataUse UI strings should be changeable via Finch (Closed)

Created:
4 years, 10 months ago by Raj
Modified:
4 years, 10 months ago
Reviewers:
Yusuf, megjablon, sky, tbansal1
CC:
chromium-reviews, tbansal1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DataUse UI strings should be changeable via Finch DataUse UI message strings shown in snackbars and interstitial dialogs, should be changeable via Finch. Since the UI string overrides in Finch are not accessible from java localization API, a JNI wrapper is used to get the overrides from C++ to java. BUG=585160 Committed: https://crrev.com/490ad2014d0e57a2f6fb6f0b43bd080b4f24647b Cr-Commit-Position: refs/heads/master@{#374774}

Patch Set 1 #

Total comments: 7

Patch Set 2 : autogen enum and more changes #

Total comments: 4

Patch Set 3 : Addressed sky comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -48 lines) Patch
M chrome/BUILD.gn View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/android/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java/res/layout/data_use_dialog.xml View 2 chunks +5 lines, -6 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/EmbedContentViewActivity.java View 1 3 chunks +16 lines, -9 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/datausage/DataUseTabUIManager.java View 1 5 chunks +28 lines, -11 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/snackbar/DataUseSnackbarController.java View 1 3 chunks +19 lines, -13 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 1 chunk +9 lines, -9 lines 0 comments Download
M chrome/browser/android/data_usage/data_use_tab_ui_manager_android.cc View 1 3 chunks +52 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 2 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (10 generated)
Raj
ptal, I will add more reviewers once the approach is ok with everyone. https://codereview.chromium.org/1678943002/diff/1/chrome/browser/android/data_usage/data_use_tab_ui_manager_android.cc File ...
4 years, 10 months ago (2016-02-08 18:47:09 UTC) #3
tbansal1
Moving myself to cc-list since megjablon@ is more familiar with this code. https://codereview.chromium.org/1678943002/diff/1/chrome/browser/android/data_usage/data_use_tab_ui_manager_android.cc File chrome/browser/android/data_usage/data_use_tab_ui_manager_android.cc ...
4 years, 10 months ago (2016-02-08 19:06:33 UTC) #4
megjablon
Thanks so much for doing this! Out of curiosity are there any more permanent solutions ...
4 years, 10 months ago (2016-02-08 23:06:35 UTC) #6
tbansal1
https://codereview.chromium.org/1678943002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/datausage/DataUseTabUIManager.java File chrome/android/java/src/org/chromium/chrome/browser/datausage/DataUseTabUIManager.java (right): https://codereview.chromium.org/1678943002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/datausage/DataUseTabUIManager.java#newcode56 chrome/android/java/src/org/chromium/chrome/browser/datausage/DataUseTabUIManager.java:56: public static final int DATA_USE_TRACKING_STARTED_SNACKBAR_MESSAGE = 0; Is it ...
4 years, 10 months ago (2016-02-08 23:16:02 UTC) #8
Raj
There were some discussions below. No possible solution yet. Permanent solution may take more time ...
4 years, 10 months ago (2016-02-09 01:10:35 UTC) #9
tbansal1
lgtm. Thanks for using the autogen enum. Please wait for megjablon@ before submitting.
4 years, 10 months ago (2016-02-09 01:19:31 UTC) #10
Raj
Adding more reviewers. ptal. Thanks
4 years, 10 months ago (2016-02-09 01:42:36 UTC) #12
sky
When adding reviewers please indicate what files need to be reviewed. Thanks, -Scott On Mon, ...
4 years, 10 months ago (2016-02-09 04:57:34 UTC) #13
Raj
Sure Scott. yusuf: ptal data_use_dialog.xml sky: ptal chrome/BUILD.gn chrome/BUILD.gn chrome/chrome.gyp EmbedContentViewActivity.java https://codereview.chromium.org/1678943002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/EmbedContentViewActivity.java File chrome/android/java/src/org/chromium/chrome/browser/EmbedContentViewActivity.java (right): ...
4 years, 10 months ago (2016-02-09 17:58:26 UTC) #14
sky
https://codereview.chromium.org/1678943002/diff/20001/chrome/chrome.gyp File chrome/chrome.gyp (right): https://codereview.chromium.org/1678943002/diff/20001/chrome/chrome.gyp#newcode692 chrome/chrome.gyp:692: 'source_file': '../chrome/browser/android/data_usage/data_use_tab_ui_manager_android.cc', Why do you have ../chrome here? Can't ...
4 years, 10 months ago (2016-02-09 20:33:14 UTC) #15
Raj
Addressed sky comments. https://codereview.chromium.org/1678943002/diff/20001/chrome/chrome.gyp File chrome/chrome.gyp (right): https://codereview.chromium.org/1678943002/diff/20001/chrome/chrome.gyp#newcode692 chrome/chrome.gyp:692: 'source_file': '../chrome/browser/android/data_usage/data_use_tab_ui_manager_android.cc', On 2016/02/09 20:33:14, sky ...
4 years, 10 months ago (2016-02-09 20:58:20 UTC) #16
sky
LGTM
4 years, 10 months ago (2016-02-09 21:07:48 UTC) #17
Yusuf
lgtm for resources
4 years, 10 months ago (2016-02-09 21:22:30 UTC) #18
megjablon
lgtm
4 years, 10 months ago (2016-02-10 20:35:15 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1678943002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1678943002/40001
4 years, 10 months ago (2016-02-10 20:43:22 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-10 23:18:02 UTC) #24
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:32:21 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/490ad2014d0e57a2f6fb6f0b43bd080b4f24647b
Cr-Commit-Position: refs/heads/master@{#374774}

Powered by Google App Engine
This is Rietveld 408576698