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

Unified Diff: chrome/browser/net/http_server_properties_manager.cc

Issue 10834004: Correct const accessors in base/values.(h|cc) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Reverting webdriver:Command::parameters_ to const Created 8 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
« no previous file with comments | « chrome/browser/metrics/metrics_log.cc ('k') | chrome/browser/plugin_finder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/http_server_properties_manager.cc
diff --git a/chrome/browser/net/http_server_properties_manager.cc b/chrome/browser/net/http_server_properties_manager.cc
index a23002c5d19722bdd2f149b1206b45423938ec6f..94e4e02598363a8525aa7fcc3bcd5c377ef2c8e1 100644
--- a/chrome/browser/net/http_server_properties_manager.cc
+++ b/chrome/browser/net/http_server_properties_manager.cc
@@ -253,7 +253,7 @@ void HttpServerPropertiesManager::UpdateCacheFromPrefsOnUI() {
} else {
// The "new" format has "version" and "servers" keys. The properties for a
// given server is in http_server_properties_dict["servers"][server].
- base::DictionaryValue* servers_dict_temp = NULL;
+ const base::DictionaryValue* servers_dict_temp = NULL;
if (!http_server_properties_dict.GetDictionaryWithoutPathExpansion(
"servers", &servers_dict_temp)) {
DVLOG(1) << "Malformed http_server_properties for servers";
@@ -282,7 +282,7 @@ void HttpServerPropertiesManager::UpdateCacheFromPrefsOnUI() {
continue;
}
- base::DictionaryValue* server_pref_dict = NULL;
+ const base::DictionaryValue* server_pref_dict = NULL;
if (!servers_dict->GetDictionaryWithoutPathExpansion(
server_str, &server_pref_dict)) {
DVLOG(1) << "Malformed http_server_properties server: " << server_str;
@@ -300,7 +300,7 @@ void HttpServerPropertiesManager::UpdateCacheFromPrefsOnUI() {
// Get SpdySettings.
DCHECK(!ContainsKey(*spdy_settings_map, server));
if (version == kVersionNumber) {
- base::DictionaryValue* spdy_settings_dict = NULL;
+ const base::DictionaryValue* spdy_settings_dict = NULL;
if (server_pref_dict->GetDictionaryWithoutPathExpansion(
"settings", &spdy_settings_dict)) {
net::SettingsMap settings_map;
@@ -341,7 +341,7 @@ void HttpServerPropertiesManager::UpdateCacheFromPrefsOnUI() {
// Get alternate_protocol server.
DCHECK(!ContainsKey(*alternate_protocol_map, server));
- base::DictionaryValue* port_alternate_protocol_dict = NULL;
+ const base::DictionaryValue* port_alternate_protocol_dict = NULL;
if (!server_pref_dict->GetDictionaryWithoutPathExpansion(
"alternate_protocol", &port_alternate_protocol_dict)) {
continue;
« no previous file with comments | « chrome/browser/metrics/metrics_log.cc ('k') | chrome/browser/plugin_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698