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

Issue 2622123002: Improve "turn on Bluetooth" flow (Closed)

Created:
3 years, 11 months ago by juncai
Modified:
3 years, 11 months ago
Reviewers:
Ted C
CC:
chromium-reviews, agrieve+watch_chromium.org, scheib, fbeaufortchromium
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve "turn on Bluetooth" flow When Bluetooth is off on the device, the "device settings" link will open a device settings page where users can turn on Bluetooth. This CL modifies the link to pop up a dialog box (upon the same webpage) which asks the users if they would like to turn on Bluetooth. This simplifies the "turn on Bluetooth" flow by staying on the same web bluetooth application webpage. I uploaded some screenshots on the issue page. BUG=676639

Patch Set 1 : improve "turn on Bluetooth" flow #

Patch Set 2 : updated string in the chooser #

Total comments: 2

Patch Set 3 : address comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -12 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/BluetoothChooserDialog.java View 1 2 6 chunks +23 lines, -8 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ItemChooserDialog.java View 1 2 5 chunks +12 lines, -3 lines 1 comment Download
M chrome/android/java/strings/android_chrome_strings.grd View 1 2 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 18 (14 generated)
juncai
Please take a look.
3 years, 11 months ago (2017-01-11 18:45:25 UTC) #9
Ted C
lgtm...neat. some suggestions here as well https://codereview.chromium.org/2622123002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/BluetoothChooserDialog.java File chrome/android/java/src/org/chromium/chrome/browser/BluetoothChooserDialog.java (right): https://codereview.chromium.org/2622123002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/BluetoothChooserDialog.java#newcode279 chrome/android/java/src/org/chromium/chrome/browser/BluetoothChooserDialog.java:279: Intent intent = ...
3 years, 11 months ago (2017-01-12 01:01:32 UTC) #12
juncai
I modified the code a little to make the chooser stay while the pop up ...
3 years, 11 months ago (2017-01-12 23:26:23 UTC) #15
Ted C
3 years, 11 months ago (2017-01-13 16:24:04 UTC) #18
lgtm with naming suggestion

https://codereview.chromium.org/2622123002/diff/40001/chrome/android/java/src...
File chrome/android/java/src/org/chromium/chrome/browser/ItemChooserDialog.java
(right):

https://codereview.chromium.org/2622123002/diff/40001/chrome/android/java/src...
chrome/android/java/src/org/chromium/chrome/browser/ItemChooserDialog.java:436:
public void setCloseWindowWhenLoseFocus(boolean closeWindowWhenLoseFocus) {
javadoc for public apis.

While I agree this internally resetting back to true is the right behavior, I
wonder if this name would imply that.

maybe something like:
ignorePendingWindowFocusChangeForClose or something along those lines.  It
implies a single use call.

Powered by Google App Engine
This is Rietveld 408576698