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

Unified Diff: chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc

Issue 385263004: Get rid of some uses of CreateIntegerValue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
index 278587eadd3118b0a1e3c2f9ecda9b3e6928b2c0..a31fe74df6be92f7602156cd1ee46435fe0666f9 100644
--- a/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
@@ -1136,8 +1136,9 @@ void InternetOptionsHandler::SetPreferNetworkCallback(
}
content::RecordAction(base::UserMetricsAction("Options_NetworkSetPrefer"));
int priority = (prefer_network_str == kTagTrue) ? kPreferredPriority : 0;
- SetNetworkProperty(service_path, shill::kPriorityProperty,
- base::Value::CreateIntegerValue(priority));
+ SetNetworkProperty(service_path,
+ shill::kPriorityProperty,
+ new base::FundamentalValue(priority));
}
void InternetOptionsHandler::SetAutoConnectCallback(
« no previous file with comments | « chrome/browser/ui/website_settings/website_settings.cc ('k') | chrome/browser/ui/webui/policy_ui_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698