diff options
author | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-11 23:49:55 +0000 |
---|---|---|
committer | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-11 23:49:55 +0000 |
commit | ff2758f5f089dee85a030cb70bea2b3bad38c8fa (patch) | |
tree | 73dcbfef8bdb64654ca64390eeec56c84483d07a /base/value_conversions.cc | |
parent | c902c288cc4cf1eb963cd37924e67046594dca6b (diff) | |
download | chromium_src-ff2758f5f089dee85a030cb70bea2b3bad38c8fa.zip chromium_src-ff2758f5f089dee85a030cb70bea2b3bad38c8fa.tar.gz chromium_src-ff2758f5f089dee85a030cb70bea2b3bad38c8fa.tar.bz2 |
Revert r141537: Add extensions::StateStore and use that instead of
ExtensionPrefs for persisting alarm state to disk.
More to come:
- context menus
- omnibox
- declarative webRequest
TBR=yoz@chromium.org
BUG=123366
TEST=extension alarms are still remembered after chrome restart
Reason for revert: breaks tests on Win7.
Review URL: https://chromiumcodereview.appspot.com/10542114
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141564 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/value_conversions.cc')
-rw-r--r-- | base/value_conversions.cc | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/base/value_conversions.cc b/base/value_conversions.cc index caf9d72..f4957a4 100644 --- a/base/value_conversions.cc +++ b/base/value_conversions.cc @@ -1,12 +1,10 @@ -// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/value_conversions.h" #include "base/file_path.h" -#include "base/string_number_conversions.h" -#include "base/time.h" #include "base/values.h" namespace base { @@ -26,21 +24,4 @@ bool GetValueAsFilePath(const Value& value, FilePath* file_path) { return true; } -// |Value| does not support 64-bit integers, and doubles do not have enough -// precision, so we store the 64-bit time value as a string instead. -StringValue* CreateTimeValue(const Time& time) { - std::string string_value = base::Int64ToString(time.ToInternalValue()); - return new StringValue(string_value); -} - -bool GetValueAsTime(const Value& value, Time* time) { - std::string str; - int64 int_value; - if (!value.GetAsString(&str) || !base::StringToInt64(str, &int_value)) - return false; - if (time) - *time = base::Time::FromInternalValue(int_value); - return true; -} - } // namespace base |