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

Issue 22796014: Eliminate c/b/chromeos/options/network_connect.cc (Closed)

Created:
7 years, 4 months ago by stevenjb
Modified:
7 years, 4 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, cbentzel+watch_chromium.org, sadrul, nkostylev+watch_chromium.org, ben+watch_chromium.org, gspencer+watch_chromium.org, gauravsh+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Eliminate c/b/chromeos/options/network_connect.cc This is just some code cleanup designed to faciliate moving the Network Notifications to the message center. It also improves the logic for showing a notification after a connect error by eliminating the NetworkState dependency (by explicitly fetching the properties before showing the notification). Having two 'network_connect.cc' files was confusing, also the functions remaining don't directly have anything to do with connect, they are support functions with Chrome dependencies and belong in AshSystemTrayDelegate. Now all of the connect flow is in one place (ash::network_connect). BUG=271546 R=gauravsh@chromium.org, jennyz@chromium.org, pneubeck@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=218752

Patch Set 1 #

Patch Set 2 : Rebase + fix clang #

Total comments: 30

Patch Set 3 : Rebase + Address feedback #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+311 lines, -327 lines) Patch
M ash/ash_chromeos_strings.grdp View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M ash/system/chromeos/network/network_connect.h View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M ash/system/chromeos/network/network_connect.cc View 1 2 10 chunks +50 lines, -6 lines 0 comments Download
M ash/system/chromeos/network/network_state_notifier.h View 1 2 4 chunks +26 lines, -11 lines 0 comments Download
M ash/system/chromeos/network/network_state_notifier.cc View 1 2 5 chunks +73 lines, -38 lines 0 comments Download
M ash/system/tray/system_tray_delegate.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M ash/system/tray/test_system_tray_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/system/tray/test_system_tray_delegate.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/app/chromeos_strings.grdp View 1 2 1 chunk +0 lines, -12 lines 0 comments Download
M chrome/browser/chromeos/net/onc_utils.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/net/onc_utils.cc View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
D chrome/browser/chromeos/options/network_connect.h View 1 chunk +0 lines, -53 lines 0 comments Download
D chrome/browser/chromeos/options/network_connect.cc View 1 1 chunk +0 lines, -172 lines 0 comments Download
M chrome/browser/chromeos/options/vpn_config_view.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/options/wifi_config_view.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/options/wimax_config_view.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/status/data_promo_notification.cc View 5 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/system/ash_system_tray_delegate.cc View 1 2 9 chunks +102 lines, -7 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc View 1 5 chunks +5 lines, -5 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M chromeos/network/network_state.h View 2 chunks +0 lines, -2 lines 0 comments Download
M chromeos/network/network_state.cc View 1 2 3 chunks +3 lines, -7 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
stevenjb
ptal
7 years, 4 months ago (2013-08-19 19:50:57 UTC) #1
gauravsh
lgtm
7 years, 4 months ago (2013-08-20 00:59:48 UTC) #2
pneubeck (no reviews)
could you explain why you want to eliminate c/b/chromeos/options/network_connect.cc in the commit message? I think ...
7 years, 4 months ago (2013-08-20 08:32:26 UTC) #3
jennyz
https://codereview.chromium.org/22796014/diff/4001/chrome/browser/chromeos/system/ash_system_tray_delegate.cc File chrome/browser/chromeos/system/ash_system_tray_delegate.cc (right): https://codereview.chromium.org/22796014/diff/4001/chrome/browser/chromeos/system/ash_system_tray_delegate.cc#newcode279 chrome/browser/chromeos/system/ash_system_tray_delegate.cc:279: ShowNetworkSettingsPage(service_path); Do you need to return after ShowNetworkSettingsPage? Otherwise, ...
7 years, 4 months ago (2013-08-20 17:06:30 UTC) #4
stevenjb
ptal https://codereview.chromium.org/22796014/diff/4001/ash/ash_chromeos_strings.grdp File ash/ash_chromeos_strings.grdp (right): https://codereview.chromium.org/22796014/diff/4001/ash/ash_chromeos_strings.grdp#newcode150 ash/ash_chromeos_strings.grdp:150: <message name="IDS_NETWORK_ACTIVATION_ERROR_TITLE" desc="Title for network connection error notification"> ...
7 years, 4 months ago (2013-08-20 20:47:43 UTC) #5
jennyz
lgtm
7 years, 4 months ago (2013-08-21 00:18:49 UTC) #6
pneubeck (no reviews)
lgtm
7 years, 4 months ago (2013-08-21 07:33:36 UTC) #7
stevenjb
7 years, 4 months ago (2013-08-21 16:33:07 UTC) #8
Message was sent while issue was closed.
Committed patchset #4 manually as r218752 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698