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

Issue 2709883005: Stubs for triggering the LSD in Clank (Closed)

Created:
3 years, 10 months ago by qfiard
Modified:
3 years, 9 months ago
Reviewers:
Ted C, benwells
CC:
chromium-reviews, agrieve+watch_chromium.org, etegan
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Stubs for triggering the LSD in Clank BUG=672301 Review-Url: https://codereview.chromium.org/2709883005 Cr-Commit-Position: refs/heads/master@{#454435} Committed: https://chromium.googlesource.com/chromium/src/+/6b1ebf77022a1754cedb39c47fb94a0a1c9f8777

Patch Set 1 #

Patch Set 2 : Clang-format #

Patch Set 3 : Pass a prompt context parameter to the method to trigger the LSD to allow the prompt UI to be perso… #

Patch Set 4 : Add explicit out-of-line destructors to comply with chromium-style #

Patch Set 5 : Specify the window in which to trigger the LSD prompt #

Patch Set 6 : Declare the dependency of components/location on WindowAndroid #

Total comments: 5

Patch Set 7 : Incorporate first batch of comments #

Total comments: 10

Patch Set 8 : Second batch of comments #

Patch Set 9 : Fix function name #

Patch Set 10 : Rebase onto head #

Total comments: 10

Patch Set 11 : Handle review comments #

Total comments: 2

Patch Set 12 : Group location settings dialog enums into a single java_cpp_enum rule #

Unified diffs Side-by-side diffs Delta from patch set Stats (+228 lines, -3 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/preferences/LocationSettings.java View 1 2 3 4 5 6 7 8 9 10 4 chunks +36 lines, -3 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/android/location_settings.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +31 lines, -0 lines 0 comments Download
M chrome/browser/android/location_settings_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/android/location_settings_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +41 lines, -0 lines 0 comments Download
M chrome/browser/android/mock_location_settings.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/android/mock_location_settings.cc View 1 2 3 4 5 6 7 1 chunk +11 lines, -0 lines 0 comments Download
M components/location/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -0 lines 0 comments Download
A components/location/android/DEPS View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M components/location/android/java/src/org/chromium/components/location/LocationUtils.java View 1 2 3 4 5 6 7 8 9 10 2 chunks +29 lines, -0 lines 0 comments Download
A components/location/android/location_settings_dialog_context.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +18 lines, -0 lines 0 comments Download
A components/location/android/location_settings_dialog_outcome.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +30 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 57 (39 generated)
benwells
https://codereview.chromium.org/2709883005/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/preferences/LocationSettings.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/LocationSettings.java (right): https://codereview.chromium.org/2709883005/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/preferences/LocationSettings.java#newcode121 chrome/android/java/src/org/chromium/chrome/browser/preferences/LocationSettings.java:121: private static native void nativeRunBoolCallback(long nativeBoolCallback, boolean result); You ...
3 years, 9 months ago (2017-02-28 06:26:37 UTC) #19
benwells
https://codereview.chromium.org/2709883005/diff/100001/chrome/browser/android/location_settings.h File chrome/browser/android/location_settings.h (right): https://codereview.chromium.org/2709883005/diff/100001/chrome/browser/android/location_settings.h#newcode28 chrome/browser/android/location_settings.h:28: // Asynchronously checks if a prompt can be triggered ...
3 years, 9 months ago (2017-02-28 06:51:38 UTC) #20
benwells
Sorry for the scattershot comments. https://codereview.chromium.org/2709883005/diff/100001/chrome/browser/android/location_settings.h File chrome/browser/android/location_settings.h (right): https://codereview.chromium.org/2709883005/diff/100001/chrome/browser/android/location_settings.h#newcode42 chrome/browser/android/location_settings.h:42: enum PromptContext { This ...
3 years, 9 months ago (2017-02-28 07:03:26 UTC) #21
qfiard
On 2017/02/28 06:26:37, benwells wrote: > https://codereview.chromium.org/2709883005/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/preferences/LocationSettings.java > File > chrome/android/java/src/org/chromium/chrome/browser/preferences/LocationSettings.java > (right): > > ...
3 years, 9 months ago (2017-02-28 14:19:09 UTC) #22
qfiard
On 2017/02/28 06:51:38, benwells wrote: > https://codereview.chromium.org/2709883005/diff/100001/chrome/browser/android/location_settings.h > File chrome/browser/android/location_settings.h (right): > > https://codereview.chromium.org/2709883005/diff/100001/chrome/browser/android/location_settings.h#newcode28 > ...
3 years, 9 months ago (2017-02-28 14:22:14 UTC) #23
qfiard
On 2017/02/28 07:03:26, benwells wrote: > Sorry for the scattershot comments. > > https://codereview.chromium.org/2709883005/diff/100001/chrome/browser/android/location_settings.h > ...
3 years, 9 months ago (2017-02-28 14:22:33 UTC) #24
benwells
looking really good :) https://codereview.chromium.org/2709883005/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/preferences/LocationSettings.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/LocationSettings.java (right): https://codereview.chromium.org/2709883005/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/preferences/LocationSettings.java#newcode115 chrome/android/java/src/org/chromium/chrome/browser/preferences/LocationSettings.java:115: private static native void nativeOnLocationSettingsDialogPromptOutcomeReceived( ...
3 years, 9 months ago (2017-03-01 03:51:27 UTC) #29
benwells
looking really good :)
3 years, 9 months ago (2017-03-01 03:51:27 UTC) #30
benwells
On 2017/03/01 03:51:27, benwells wrote: > looking really good :)
3 years, 9 months ago (2017-03-01 03:52:44 UTC) #31
benwells
On 2017/03/01 03:52:44, benwells wrote: > On 2017/03/01 03:51:27, benwells wrote: > > looking really ...
3 years, 9 months ago (2017-03-01 03:53:27 UTC) #32
qfiard
https://codereview.chromium.org/2709883005/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/preferences/LocationSettings.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/LocationSettings.java (right): https://codereview.chromium.org/2709883005/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/preferences/LocationSettings.java#newcode115 chrome/android/java/src/org/chromium/chrome/browser/preferences/LocationSettings.java:115: private static native void nativeOnLocationSettingsDialogPromptOutcomeReceived( On 2017/03/01 03:51:26, benwells ...
3 years, 9 months ago (2017-03-01 08:48:18 UTC) #33
benwells
I think this is good to send to owners :) lgtm https://codereview.chromium.org/2709883005/diff/120001/chrome/browser/android/location_settings_impl.cc File chrome/browser/android/location_settings_impl.cc (right): ...
3 years, 9 months ago (2017-03-01 10:47:45 UTC) #40
Ted C
https://codereview.chromium.org/2709883005/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/preferences/LocationSettings.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/LocationSettings.java (right): https://codereview.chromium.org/2709883005/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/preferences/LocationSettings.java#newcode63 chrome/android/java/src/org/chromium/chrome/browser/preferences/LocationSettings.java:63: public static boolean canPromptToEnableSystemLocationSetting() { do these need to ...
3 years, 9 months ago (2017-03-02 00:21:56 UTC) #44
qfiard
https://codereview.chromium.org/2709883005/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/preferences/LocationSettings.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/LocationSettings.java (right): https://codereview.chromium.org/2709883005/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/preferences/LocationSettings.java#newcode63 chrome/android/java/src/org/chromium/chrome/browser/preferences/LocationSettings.java:63: public static boolean canPromptToEnableSystemLocationSetting() { On 2017/03/02 00:21:56, Ted ...
3 years, 9 months ago (2017-03-02 13:28:13 UTC) #45
Ted C
lgtm w/ last nit. thanks! https://codereview.chromium.org/2709883005/diff/200001/components/location/android/BUILD.gn File components/location/android/BUILD.gn (right): https://codereview.chromium.org/2709883005/diff/200001/components/location/android/BUILD.gn#newcode7 components/location/android/BUILD.gn:7: java_cpp_enum("location_settings_dialog_context_java") { I "think" ...
3 years, 9 months ago (2017-03-02 16:55:48 UTC) #50
qfiard
https://codereview.chromium.org/2709883005/diff/200001/components/location/android/BUILD.gn File components/location/android/BUILD.gn (right): https://codereview.chromium.org/2709883005/diff/200001/components/location/android/BUILD.gn#newcode7 components/location/android/BUILD.gn:7: java_cpp_enum("location_settings_dialog_context_java") { On 2017/03/02 16:55:48, Ted C wrote: > ...
3 years, 9 months ago (2017-03-02 20:40:28 UTC) #51
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/2709883005/220001
3 years, 9 months ago (2017-03-02 21:49:05 UTC) #54
commit-bot: I haz the power
3 years, 9 months ago (2017-03-02 23:42:06 UTC) #57
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/6b1ebf77022a1754cedb39c47fb9...

Powered by Google App Engine
This is Rietveld 408576698