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

Unified Diff: chrome/browser/ui/webui/net_internals_ui.cc

Issue 7649006: more changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix another typo Created 9 years, 4 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
« no previous file with comments | « chrome/browser/ui/webui/crashes_ui.cc ('k') | chrome/browser/ui/webui/net_internals_ui_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/net_internals_ui.cc
diff --git a/chrome/browser/ui/webui/net_internals_ui.cc b/chrome/browser/ui/webui/net_internals_ui.cc
index c2de1c14aec7855fdbe4564b047d5994f7bfb247..0551fbf45c287586681d0c656f3ac6fec64c3117 100644
--- a/chrome/browser/ui/webui/net_internals_ui.cc
+++ b/chrome/browser/ui/webui/net_internals_ui.cc
@@ -581,7 +581,7 @@ void NetInternalsMessageHandler::SendJavascriptCommand(
const std::wstring& command,
Value* arg) {
scoped_ptr<Value> command_value(
- Value::CreateStringValue(WideToASCII(command)));
+ base::StringValue::New(WideToASCII(command)));
scoped_ptr<Value> value(arg);
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
if (value.get()) {
@@ -604,7 +604,7 @@ void NetInternalsMessageHandler::Observe(int type,
if (*pref_name == prefs::kHttpThrottlingEnabled) {
SendJavascriptCommand(
L"receivedHttpThrottlingEnabledPrefChanged",
- Value::CreateBooleanValue(*http_throttling_enabled_));
+ base::BooleanValue::New(*http_throttling_enabled_));
}
}
@@ -614,7 +614,7 @@ void NetInternalsMessageHandler::OnRendererReady(const ListValue* list) {
SendJavascriptCommand(
L"receivedHttpThrottlingEnabledPrefChanged",
- Value::CreateBooleanValue(*http_throttling_enabled_));
+ base::BooleanValue::New(*http_throttling_enabled_));
}
void NetInternalsMessageHandler::OnEnableHttpThrottling(const ListValue* list) {
@@ -943,7 +943,7 @@ void NetInternalsMessageHandler::IOThreadImpl::OnGetHostResolverInfo(
ListValue* address_list = new ListValue();
const struct addrinfo* current_address = entry->addrlist.head();
while (current_address) {
- address_list->Append(Value::CreateStringValue(
+ address_list->Append(base::StringValue::New(
net::NetAddressToStringWithPort(current_address)));
current_address = current_address->ai_next;
}
@@ -1126,7 +1126,7 @@ void NetInternalsMessageHandler::IOThreadImpl::OnGetHttpCacheInfo(
disk_cache->GetStats(&stats);
for (size_t i = 0; i < stats.size(); ++i) {
stats_dict->Set(stats[i].first,
- Value::CreateStringValue(stats[i].second));
+ base::StringValue::New(stats[i].second));
}
}
@@ -1184,19 +1184,19 @@ void NetInternalsMessageHandler::IOThreadImpl::OnGetSpdyStatus(
DictionaryValue* status_dict = new DictionaryValue();
status_dict->Set("spdy_enabled",
- Value::CreateBooleanValue(
+ base::BooleanValue::New(
net::HttpStreamFactory::spdy_enabled()));
status_dict->Set("use_alternate_protocols",
- Value::CreateBooleanValue(
+ base::BooleanValue::New(
net::HttpStreamFactory::use_alternate_protocols()));
status_dict->Set("force_spdy_over_ssl",
- Value::CreateBooleanValue(
+ base::BooleanValue::New(
net::HttpStreamFactory::force_spdy_over_ssl()));
status_dict->Set("force_spdy_always",
- Value::CreateBooleanValue(
+ base::BooleanValue::New(
net::HttpStreamFactory::force_spdy_always()));
status_dict->Set("next_protos",
- Value::CreateStringValue(
+ base::StringValue::New(
*net::HttpStreamFactory::next_protos()));
SendJavascriptCommand(L"receivedSpdyStatus", status_dict);
« no previous file with comments | « chrome/browser/ui/webui/crashes_ui.cc ('k') | chrome/browser/ui/webui/net_internals_ui_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698