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

Issue 4169001: Rewritten parts of NetworkLibrary to work around memory corruption that prev... (Closed)

Created:
10 years, 2 months ago by zel
Modified:
9 years, 6 months ago
Reviewers:
stevenjb, rtc, Charlie Lee
CC:
Eric Shienbrood, chromium-reviews, nkostylev+cc_chromium.org, davemoore+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Rewritten parts of NetworkLibrary to work around memory corruption that prevented proper dbus functioning for 3G actrivation. The principle behind this change is pretty simple - there is only one instance of chromeos::Network specialization representing a network service at the time. Please note that there are parts of obsolete UI elements where object copies were still made. The cellular plan part is still work in progress, but there is enough to be reviewed now so I want to get an early start right now. BUG=chromium-os:7619 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=64445

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 4

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Total comments: 63

Patch Set 12 : '' #

Total comments: 2

Patch Set 13 : '' #

Patch Set 14 : '' #

Patch Set 15 : '' #

Patch Set 16 : '' #

Patch Set 17 : '' #

Total comments: 2

Patch Set 18 : '' #

Patch Set 19 : '' #

Patch Set 20 : '' #

Patch Set 21 : '' #

Patch Set 22 : '' #

Patch Set 23 : '' #

Patch Set 24 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1013 lines, -875 lines) Patch
M chrome/browser/chromeos/cros/mock_network_library.h View 18 19 20 21 22 3 chunks +12 lines, -16 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 17 chunks +38 lines, -34 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 32 chunks +396 lines, -342 lines 0 comments Download
M chrome/browser/chromeos/dom_ui/internet_options_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/dom_ui/internet_options_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 14 chunks +140 lines, -155 lines 0 comments Download
M chrome/browser/chromeos/dom_ui/mobile_setup_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 28 chunks +138 lines, -62 lines 0 comments Download
M chrome/browser/chromeos/login/network_screen.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/network_screen_browsertest.cc View 18 19 20 21 22 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/network_list.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/network_list.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +16 lines, -12 lines 0 comments Download
M chrome/browser/chromeos/network_message_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/network_message_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 7 chunks +29 lines, -20 lines 0 comments Download
M chrome/browser/chromeos/options/cellular_config_view.h View 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/options/cellular_config_view.cc View 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 5 chunks +12 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/options/internet_page_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 4 chunks +15 lines, -36 lines 0 comments Download
M chrome/browser/chromeos/options/network_config_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/options/network_config_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 5 chunks +23 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/options/wifi_config_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/options/wifi_config_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 13 chunks +30 lines, -25 lines 0 comments Download
M chrome/browser/chromeos/options/wifi_config_view_browsertest.cc View 18 19 20 21 22 2 chunks +8 lines, -7 lines 0 comments Download
MM chrome/browser/chromeos/status/network_dropdown_button.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/status/network_menu.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/status/network_menu.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 15 chunks +93 lines, -82 lines 0 comments Download
M chrome/browser/chromeos/status/network_menu_button.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 4 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/resources/mobile_setup.js View 15 16 17 18 19 20 21 22 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/resources/options/chromeos_internet_network_element.js View 9 10 11 12 13 14 15 16 17 18 19 20 21 22 6 chunks +9 lines, -10 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
zel
10 years, 1 month ago (2010-10-26 23:57:47 UTC) #1
Charlie Lee
Just had time to look at the first 2 files. Will take a look in ...
10 years, 1 month ago (2010-10-27 01:08:07 UTC) #2
stevenjb
http://codereview.chromium.org/4169001/diff/76003/15003 File chrome/browser/chromeos/cros/network_library.cc (right): http://codereview.chromium.org/4169001/diff/76003/15003#newcode252 chrome/browser/chromeos/cros/network_library.cc:252: prl_version_ = network.prl_version(); Copy data_plans_ http://codereview.chromium.org/4169001/diff/76003/15003#newcode687 chrome/browser/chromeos/cros/network_library.cc:687: const std::string& ...
10 years, 1 month ago (2010-10-27 19:18:10 UTC) #3
zel
http://codereview.chromium.org/4169001/diff/20022/81002 File chrome/browser/chromeos/cros/network_library.h (right): http://codereview.chromium.org/4169001/diff/20022/81002#newcode108 chrome/browser/chromeos/cros/network_library.h:108: bool operator()(const WirelessNetwork* a) { On 2010/10/27 01:08:07, Charlie ...
10 years, 1 month ago (2010-10-27 19:55:17 UTC) #4
Charlie Lee
Zel, what was the reasoning behind removing the remembered cellular networks? Did we decide to ...
10 years, 1 month ago (2010-10-27 22:47:55 UTC) #5
stevenjb
http://codereview.chromium.org/4169001/diff/76003/15003 File chrome/browser/chromeos/cros/network_library.cc (right): http://codereview.chromium.org/4169001/diff/76003/15003#newcode753 chrome/browser/chromeos/cros/network_library.cc:753: if (!EnsureCrosLoaded() || !network) On 2010/10/27 19:18:10, Steven Bennetts ...
10 years, 1 month ago (2010-10-28 01:42:03 UTC) #6
stevenjb
I believe this will do what you want for ForgetWifiNetwork(). virtual void ForgetWifiNetwork(const std::string& service_path) ...
10 years, 1 month ago (2010-10-28 18:47:23 UTC) #7
zel
http://codereview.chromium.org/4169001/diff/76003/15003 File chrome/browser/chromeos/cros/network_library.cc (right): http://codereview.chromium.org/4169001/diff/76003/15003#newcode753 chrome/browser/chromeos/cros/network_library.cc:753: if (!EnsureCrosLoaded() || !network) On 2010/10/27 19:18:10, Steven Bennetts ...
10 years, 1 month ago (2010-10-28 20:22:34 UTC) #8
stevenjb
LGTM with minor nit http://codereview.chromium.org/4169001/diff/40003/75004 File chrome/browser/chromeos/cros/network_library.cc (right): http://codereview.chromium.org/4169001/diff/40003/75004#newcode1036 chrome/browser/chromeos/cros/network_library.cc:1036: // Create placeholder network for ...
10 years, 1 month ago (2010-10-28 22:00:30 UTC) #9
zel
10 years, 1 month ago (2010-10-28 22:03:28 UTC) #10
will push it when trybots cycle green

http://codereview.chromium.org/4169001/diff/40003/75004
File chrome/browser/chromeos/cros/network_library.cc (right):

http://codereview.chromium.org/4169001/diff/40003/75004#newcode1036
chrome/browser/chromeos/cros/network_library.cc:1036: // Create placeholder
network for etherner even if the service is not
On 2010/10/28 22:00:30, Steven Bennetts wrote:
> nit: s/etherner/ethernet/
> 

Done.

Powered by Google App Engine
This is Rietveld 408576698