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

Issue 2957043002: Add a row in the network tray to inform users to turn Bluetooth on to enable Tether. (Closed)

Created:
3 years, 5 months ago by lesliewatkins
Modified:
3 years, 5 months ago
CC:
chromium-reviews, kalyank, sadrul, Ryan Hansberry, stevenjb, jhawkins, tdanderson, Jeremy Klein
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a row in the network tray to inform users to turn Bluetooth on to enable Tether. Renamed TrayDetailsView::InfoLabel to TrayInfoLabel and moved it to its own file. It also now subclasses ActionableView instead of View, so it can be clickable. TrayInfoLabel::Delegate keeps track of whether or not the label is clickable, and handles clicks. BUG=672263, 735642 Review-Url: https://codereview.chromium.org/2957043002 Cr-Commit-Position: refs/heads/master@{#487975} Committed: https://chromium.googlesource.com/chromium/src/+/2257878a0dfb81bbbc37613752865983568580af

Patch Set 1 #

Patch Set 2 : changed clickable boolean to enum #

Patch Set 3 : added actions and slightly refactored the infolabel class #

Total comments: 25

Patch Set 4 : Overhaul of previous implementation #

Total comments: 23

Patch Set 5 : tdanderson@ and khorimoto@ comments #

Total comments: 44

Patch Set 6 : khorimoto@ and jamescook@ comments #

Total comments: 46

Patch Set 7 : khorimoto@ comments #

Total comments: 26

Patch Set 8 : khorimoto@ comments #

Total comments: 10

Patch Set 9 : khorimoto@ comments #

Total comments: 11

Patch Set 10 : khorimoto@ comments #

Total comments: 8

Patch Set 11 : khorimoto@ and jamescook@ comments #

Patch Set 12 : changed message ids in unittests #

Patch Set 13 : changed message ids to actual string names #

Unified diffs Side-by-side diffs Delta from patch set Stats (+321 lines, -59 lines) Patch
M ash/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -0 lines 0 comments Download
M ash/ash_strings.grd View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M ash/system/bluetooth/tray_bluetooth.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M ash/system/network/network_icon.cc View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -3 lines 0 comments Download
M ash/system/network/network_list.h View 1 2 3 4 5 6 7 8 9 5 chunks +10 lines, -4 lines 0 comments Download
M ash/system/network/network_list.cc View 1 2 3 4 5 6 7 8 9 3 chunks +15 lines, -4 lines 0 comments Download
M ash/system/tray/tray_details_view.h View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -17 lines 0 comments Download
M ash/system/tray/tray_details_view.cc View 1 2 3 4 5 6 1 chunk +0 lines, -29 lines 0 comments Download
A ash/system/tray/tray_info_label.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +57 lines, -0 lines 0 comments Download
A ash/system/tray/tray_info_label.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +77 lines, -0 lines 0 comments Download
A ash/system/tray/tray_info_label_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +136 lines, -0 lines 0 comments Download
M ash/system/tray/tray_popup_item_style.h View 4 1 chunk +2 lines, -0 lines 0 comments Download
M ash/system/tray/tray_popup_item_style.cc View 4 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 56 (19 generated)
lesliewatkins
3 years, 5 months ago (2017-06-27 18:40:46 UTC) #3
tdanderson
Hi Leslie, please see my comments below. https://codereview.chromium.org/2957043002/diff/40001/ash/ash_strings.grd File ash/ash_strings.grd (right): https://codereview.chromium.org/2957043002/diff/40001/ash/ash_strings.grd#newcode7 ash/ash_strings.grd:7: <grit base_dir="." ...
3 years, 5 months ago (2017-06-27 19:33:21 UTC) #4
Kyle Horimoto
Your BUG= is the wrong one. Please use the cover bug, not the launch bug ...
3 years, 5 months ago (2017-06-27 19:36:57 UTC) #5
Kyle Horimoto
https://codereview.chromium.org/2957043002/diff/40001/ash/ash_strings.grd File ash/ash_strings.grd (right): https://codereview.chromium.org/2957043002/diff/40001/ash/ash_strings.grd#newcode7 ash/ash_strings.grd:7: <grit base_dir="." latest_public_release="0" current_release="1" On 2017/06/27 19:33:21, tdanderson wrote: ...
3 years, 5 months ago (2017-06-27 20:37:10 UTC) #6
tdanderson
https://codereview.chromium.org/2957043002/diff/40001/ash/ash_strings.grd File ash/ash_strings.grd (right): https://codereview.chromium.org/2957043002/diff/40001/ash/ash_strings.grd#newcode7 ash/ash_strings.grd:7: <grit base_dir="." latest_public_release="0" current_release="1" On 2017/06/27 20:37:10, Kyle Horimoto ...
3 years, 5 months ago (2017-06-27 21:27:40 UTC) #7
Kyle Horimoto
https://codereview.chromium.org/2957043002/diff/40001/ash/system/network/network_icon.cc File ash/system/network/network_icon.cc (right): https://codereview.chromium.org/2957043002/diff/40001/ash/system/network/network_icon.cc#newcode885 ash/system/network/network_icon.cc:885: NetworkStateHandler::TECHNOLOGY_UNINITIALIZED) { On 2017/06/27 19:36:56, Kyle Horimoto wrote: > ...
3 years, 5 months ago (2017-06-29 19:24:32 UTC) #8
lesliewatkins
This is almost certainly going to take some more back-and-forth, but I totally (re)changed the ...
3 years, 5 months ago (2017-07-07 16:19:19 UTC) #10
Kyle Horimoto
https://codereview.chromium.org/2957043002/diff/60001/ash/system/network/network_icon.cc File ash/system/network/network_icon.cc (right): https://codereview.chromium.org/2957043002/diff/60001/ash/system/network/network_icon.cc#newcode886 ash/system/network/network_icon.cc:886: s_uninitialized_msg = IDS_ASH_STATUS_TRAY_ENABLE_BLUETOOTH; nit: Add a TODO here to ...
3 years, 5 months ago (2017-07-07 17:34:00 UTC) #11
tdanderson
Please see my suggestions below. Note I am OOO until Thursday of next week, so ...
3 years, 5 months ago (2017-07-07 21:25:11 UTC) #12
Kyle Horimoto
https://codereview.chromium.org/2957043002/diff/60001/ash/system/network/network_list.cc File ash/system/network/network_list.cc (right): https://codereview.chromium.org/2957043002/diff/60001/ash/system/network/network_list.cc#newcode644 ash/system/network/network_list.cc:644: info_label = TrayDetailsView::CreateInfoLabel( On 2017/07/07 21:25:11, tdanderson (OOO til ...
3 years, 5 months ago (2017-07-07 21:39:25 UTC) #13
lesliewatkins
jamescook@, tdanderson@ suggested that you review this CL in his absence. https://codereview.chromium.org/2957043002/diff/60001/ash/ash_strings.grd File ash/ash_strings.grd (right): ...
3 years, 5 months ago (2017-07-09 00:57:48 UTC) #15
Kyle Horimoto
Please update your CL description since it is no longer accurate. Thanks! https://codereview.chromium.org/2957043002/diff/80001/ash/system/bluetooth/tray_bluetooth.cc File ash/system/bluetooth/tray_bluetooth.cc ...
3 years, 5 months ago (2017-07-10 18:37:08 UTC) #16
James Cook
https://codereview.chromium.org/2957043002/diff/80001/ash/system/network/network_icon.cc File ash/system/network/network_icon.cc (right): https://codereview.chromium.org/2957043002/diff/80001/ash/system/network/network_icon.cc#newcode880 ash/system/network/network_icon.cc:880: static base::Time s_uninitialized_state_time; Aside: You didn't add it in ...
3 years, 5 months ago (2017-07-10 18:43:03 UTC) #17
Kyle Horimoto
https://codereview.chromium.org/2957043002/diff/80001/ash/system/network/network_icon.cc File ash/system/network/network_icon.cc (right): https://codereview.chromium.org/2957043002/diff/80001/ash/system/network/network_icon.cc#newcode885 ash/system/network/network_icon.cc:885: // due to no Bluetooth (dependent on 2969493002). On ...
3 years, 5 months ago (2017-07-10 19:15:37 UTC) #18
James Cook
Looks like I collided with Kyle. I'll let you sort things out with him first, ...
3 years, 5 months ago (2017-07-10 19:31:34 UTC) #19
James Cook
https://codereview.chromium.org/2957043002/diff/80001/ash/system/tray/tray_details_view.h File ash/system/tray/tray_details_view.h (right): https://codereview.chromium.org/2957043002/diff/80001/ash/system/tray/tray_details_view.h#newcode59 ash/system/tray/tray_details_view.h:59: class InfoLabelDelegate; On 2017/07/10 18:37:08, Kyle Horimoto wrote: > ...
3 years, 5 months ago (2017-07-11 23:14:15 UTC) #20
lesliewatkins
https://codereview.chromium.org/2957043002/diff/80001/ash/system/bluetooth/tray_bluetooth.cc File ash/system/bluetooth/tray_bluetooth.cc (right): https://codereview.chromium.org/2957043002/diff/80001/ash/system/bluetooth/tray_bluetooth.cc#newcode319 ash/system/bluetooth/tray_bluetooth.cc:319: nullptr /* InfoLabelDelegate */)); On 2017/07/10 18:37:07, Kyle Horimoto ...
3 years, 5 months ago (2017-07-12 21:49:51 UTC) #22
lesliewatkins
3 years, 5 months ago (2017-07-12 21:54:10 UTC) #23
Kyle Horimoto
https://codereview.chromium.org/2957043002/diff/100001/ash/ash_strings.grd File ash/ash_strings.grd (right): https://codereview.chromium.org/2957043002/diff/100001/ash/ash_strings.grd#newcode897 ash/ash_strings.grd:897: <message name="IDS_ASH_STATUS_TRAY_ENABLE_BLUETOOTH" desc="The message to display in the network ...
3 years, 5 months ago (2017-07-12 22:45:59 UTC) #24
lesliewatkins
https://codereview.chromium.org/2957043002/diff/100001/ash/ash_strings.grd File ash/ash_strings.grd (right): https://codereview.chromium.org/2957043002/diff/100001/ash/ash_strings.grd#newcode897 ash/ash_strings.grd:897: <message name="IDS_ASH_STATUS_TRAY_ENABLE_BLUETOOTH" desc="The message to display in the network ...
3 years, 5 months ago (2017-07-13 22:12:49 UTC) #26
Kyle Horimoto
https://codereview.chromium.org/2957043002/diff/100001/ash/system/tray/tray_info_label_unittest.cc File ash/system/tray/tray_info_label_unittest.cc (right): https://codereview.chromium.org/2957043002/diff/100001/ash/system/tray/tray_info_label_unittest.cc#newcode38 ash/system/tray/tray_info_label_unittest.cc:38: namespace test { On 2017/07/13 22:12:48, lesliewatkins wrote: > ...
3 years, 5 months ago (2017-07-13 23:15:37 UTC) #27
lesliewatkins
https://codereview.chromium.org/2957043002/diff/100001/ash/system/tray/tray_info_label_unittest.cc File ash/system/tray/tray_info_label_unittest.cc (right): https://codereview.chromium.org/2957043002/diff/100001/ash/system/tray/tray_info_label_unittest.cc#newcode38 ash/system/tray/tray_info_label_unittest.cc:38: namespace test { On 2017/07/13 23:15:36, Kyle Horimoto wrote: ...
3 years, 5 months ago (2017-07-14 06:41:54 UTC) #28
Kyle Horimoto
Almost there!!! https://codereview.chromium.org/2957043002/diff/100001/ash/system/tray/tray_info_label_unittest.cc File ash/system/tray/tray_info_label_unittest.cc (right): https://codereview.chromium.org/2957043002/diff/100001/ash/system/tray/tray_info_label_unittest.cc#newcode59 ash/system/tray/tray_info_label_unittest.cc:59: TEST_F(TrayInfoLabelTest, NonClickableDelegate) { On 2017/07/14 06:41:51, lesliewatkins ...
3 years, 5 months ago (2017-07-14 17:54:22 UTC) #29
lesliewatkins
https://codereview.chromium.org/2957043002/diff/100001/ash/system/tray/tray_info_label_unittest.cc File ash/system/tray/tray_info_label_unittest.cc (right): https://codereview.chromium.org/2957043002/diff/100001/ash/system/tray/tray_info_label_unittest.cc#newcode59 ash/system/tray/tray_info_label_unittest.cc:59: TEST_F(TrayInfoLabelTest, NonClickableDelegate) { On 2017/07/14 17:54:21, Kyle Horimoto wrote: ...
3 years, 5 months ago (2017-07-14 20:43:17 UTC) #30
Kyle Horimoto
https://codereview.chromium.org/2957043002/diff/160001/ash/system/tray/tray_info_label.h File ash/system/tray/tray_info_label.h (right): https://codereview.chromium.org/2957043002/diff/160001/ash/system/tray/tray_info_label.h#newcode27 ash/system/tray/tray_info_label.h:27: virtual bool IsLabelClickable(int message_id) = 0; nit: Make this ...
3 years, 5 months ago (2017-07-14 20:58:50 UTC) #31
lesliewatkins
https://codereview.chromium.org/2957043002/diff/160001/ash/system/tray/tray_info_label.h File ash/system/tray/tray_info_label.h (right): https://codereview.chromium.org/2957043002/diff/160001/ash/system/tray/tray_info_label.h#newcode27 ash/system/tray/tray_info_label.h:27: virtual bool IsLabelClickable(int message_id) = 0; On 2017/07/14 20:58:49, ...
3 years, 5 months ago (2017-07-18 17:00:06 UTC) #32
Kyle Horimoto
LGTM w/ nits. Nice work - thanks for sticking through the review process! https://codereview.chromium.org/2957043002/diff/180001/ash/system/tray/tray_info_label.h File ...
3 years, 5 months ago (2017-07-18 17:10:05 UTC) #33
James Cook
LGTM with nits and an optional suggestion. Nice CL. https://codereview.chromium.org/2957043002/diff/180001/ash/system/tray/tray_info_label.cc File ash/system/tray/tray_info_label.cc (right): https://codereview.chromium.org/2957043002/diff/180001/ash/system/tray/tray_info_label.cc#newcode1 ash/system/tray/tray_info_label.cc:1: ...
3 years, 5 months ago (2017-07-18 17:26:10 UTC) #34
Kyle Horimoto
https://codereview.chromium.org/2957043002/diff/180001/ash/system/tray/tray_info_label_unittest.cc File ash/system/tray/tray_info_label_unittest.cc (right): https://codereview.chromium.org/2957043002/diff/180001/ash/system/tray/tray_info_label_unittest.cc#newcode117 ash/system/tray/tray_info_label_unittest.cc:117: ClickOnLabel(true /* expect_click_was_handled */); On 2017/07/18 17:26:10, James Cook ...
3 years, 5 months ago (2017-07-18 17:38:08 UTC) #35
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/2957043002/200001
3 years, 5 months ago (2017-07-18 21:25:07 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/471404)
3 years, 5 months ago (2017-07-18 23:14:26 UTC) #40
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/2957043002/220001
3 years, 5 months ago (2017-07-18 23:56:58 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/471496)
3 years, 5 months ago (2017-07-19 01:51:28 UTC) #45
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/2957043002/240001
3 years, 5 months ago (2017-07-19 19:15:54 UTC) #51
commit-bot: I haz the power
Committed patchset #13 (id:240001) as https://chromium.googlesource.com/chromium/src/+/2257878a0dfb81bbbc37613752865983568580af
3 years, 5 months ago (2017-07-19 21:04:22 UTC) #54
sclittle
A revert of this CL (patchset #13 id:240001) has been created in https://codereview.chromium.org/2978363002/ by sclittle@chromium.org. ...
3 years, 5 months ago (2017-07-19 22:08:08 UTC) #55
findit-for-me
3 years, 5 months ago (2017-07-19 22:19:01 UTC) #56
Message was sent while issue was closed.
Findit (https://goo.gl/kROfz5) confirmed this CL at revision 487975 as the
culprit for
failures in the build cycles as shown on:
https://findit-for-me.appspot.com/waterfall/culprit?key=ag9zfmZpbmRpdC1mb3Itb...

Powered by Google App Engine
This is Rietveld 408576698