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

Issue 7765009: Use new GValue chromeos_network calls instead of base::Value (Closed)

Created:
9 years, 4 months ago by stevenjb
Modified:
9 years, 3 months ago
Reviewers:
tony, satorux1
CC:
chromium-reviews, davemoore+watch_chromium.org, Evan Martin, tfarina
Visibility:
Public.

Description

Use new GValue chromeos_network calls instead of base::Value BUG=chromium-os:19576 TEST=Requires updated libcros (166). Ensure tests pass. Thoroughly test Network UI. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98737

Patch Set 1 #

Total comments: 12

Patch Set 2 : Address comments. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+269 lines, -138 lines) Patch
M chrome/browser/chromeos/cros/network_library.cc View 1 32 chunks +269 lines, -138 lines 1 comment Download

Messages

Total messages: 5 (0 generated)
stevenjb
This CL is dependent on: http://gerrit.chromium.org/gerrit/#change,6786 + a DEPS roll.
9 years, 4 months ago (2011-08-27 00:35:39 UTC) #1
tony
I see, you're just moving the conversion from within libcros into chrome. Seems fine to ...
9 years, 3 months ago (2011-08-29 17:01:22 UTC) #2
tony
LGTM
9 years, 3 months ago (2011-08-29 17:01:39 UTC) #3
satorux1
LGTM. http://codereview.chromium.org/7765009/diff/2002/chrome/browser/chromeos/cros/network_library.cc File chrome/browser/chromeos/cros/network_library.cc (right): http://codereview.chromium.org/7765009/diff/2002/chrome/browser/chromeos/cros/network_library.cc#newcode239 chrome/browser/chromeos/cros/network_library.cc:239: // that's what flimflam expects in its DBus ...
9 years, 3 months ago (2011-08-29 19:52:46 UTC) #4
stevenjb
9 years, 3 months ago (2011-08-29 20:36:31 UTC) #5
http://codereview.chromium.org/7765009/diff/1/chrome/browser/chromeos/cros/ne...
File chrome/browser/chromeos/cros/network_library.cc (right):

http://codereview.chromium.org/7765009/diff/1/chrome/browser/chromeos/cros/ne...
chrome/browser/chromeos/cros/network_library.cc:161: void
AppendListElement(const GValue *gvalue, ::gpointer user_data) {
On 2011/08/29 17:01:22, tony wrote:
> Nit: GValue* gvalue.  I would probably also drop the :: since we don't seem to
> do that with other uses of gpointer.

Done.

http://codereview.chromium.org/7765009/diff/1/chrome/browser/chromeos/cros/ne...
chrome/browser/chromeos/cros/network_library.cc:169: ::gpointer user_data) {
On 2011/08/29 17:01:22, tony wrote:
> ditto

Done.

http://codereview.chromium.org/7765009/diff/1/chrome/browser/chromeos/cros/ne...
chrome/browser/chromeos/cros/network_library.cc:191: const char* path =
static_cast<const char*>(::g_value_get_boxed(gvalue));
On 2011/08/29 17:01:22, tony wrote:
> Nit: drop :: here and other users in this function.

Done.

http://codereview.chromium.org/7765009/diff/1/chrome/browser/chromeos/cros/ne...
chrome/browser/chromeos/cros/network_library.cc:274: // Other Value types -
DICTIONARY, LIST, NULL, REAL, BINARY -
On 2011/08/29 17:01:22, tony wrote:
> Nit: I prefer to list all the types explicitly rather than using default. 
That
> way if a type is added or removed, the compiler will catch it and make the
> author aware of this code.

Done.

http://codereview.chromium.org/7765009/diff/1/chrome/browser/chromeos/cros/ne...
chrome/browser/chromeos/cros/network_library.cc:3148: void* object, const char*
manager_path, GHashTable* ghsash);
On 2011/08/29 17:01:22, tony wrote:
> Nit: typo

Done.

http://codereview.chromium.org/7765009/diff/1/chrome/browser/chromeos/cros/ne...
chrome/browser/chromeos/cros/network_library.cc:3786: int prefixlen =
static_cast<int>(ipconfig.GetPrefixLength());
On 2011/08/29 17:01:22, tony wrote:
> int32 and int are the same (see the typedef in base/basictypes.h).  Is this
> necessary?
It isn't, since int is 32 bits on all modern compilers, just an old habit of
avoiding making assumptions :)

Powered by Google App Engine
This is Rietveld 408576698