summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorarv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-01 01:02:07 +0000
committerarv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-01 01:02:07 +0000
commitfb534c949f92bec8c6312b58ffcc04c5dc488f2d (patch)
tree84384bdb8b06e62662ce1a5e9619ae455e9a69a8 /net
parentefeb669b05db99c54309771e4884b1a17d604a37 (diff)
downloadchromium_src-fb534c949f92bec8c6312b58ffcc04c5dc488f2d.zip
chromium_src-fb534c949f92bec8c6312b58ffcc04c5dc488f2d.tar.gz
chromium_src-fb534c949f92bec8c6312b58ffcc04c5dc488f2d.tar.bz2
Rename Real* to Double* in values.* and dependent files
BUG=None TEST=Compiles and passes all tests Review URL: http://codereview.chromium.org/6248026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73232 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/base/transport_security_state.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/base/transport_security_state.cc b/net/base/transport_security_state.cc
index def9fee..d55b20b 100644
--- a/net/base/transport_security_state.cc
+++ b/net/base/transport_security_state.cc
@@ -265,8 +265,8 @@ bool TransportSecurityState::Serialise(std::string* output) {
i = enabled_hosts_.begin(); i != enabled_hosts_.end(); ++i) {
DictionaryValue* state = new DictionaryValue;
state->SetBoolean("include_subdomains", i->second.include_subdomains);
- state->SetReal("created", i->second.created.ToDoubleT());
- state->SetReal("expiry", i->second.expiry.ToDoubleT());
+ state->SetDouble("created", i->second.created.ToDoubleT());
+ state->SetDouble("expiry", i->second.expiry.ToDoubleT());
switch (i->second.mode) {
case DomainState::MODE_STRICT:
@@ -317,7 +317,7 @@ bool TransportSecurityState::Deserialise(const std::string& input,
if (!state->GetBoolean("include_subdomains", &include_subdomains) ||
!state->GetString("mode", &mode_string) ||
- !state->GetReal("expiry", &expiry)) {
+ !state->GetDouble("expiry", &expiry)) {
continue;
}
@@ -336,7 +336,7 @@ bool TransportSecurityState::Deserialise(const std::string& input,
base::Time expiry_time = base::Time::FromDoubleT(expiry);
base::Time created_time;
- if (state->GetReal("created", &created)) {
+ if (state->GetDouble("created", &created)) {
created_time = base::Time::FromDoubleT(created);
} else {
// We're migrating an old entry with no creation date. Make sure we