diff options
author | cmumford <cmumford@chromium.org> | 2015-11-30 15:12:49 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-30 23:13:35 +0000 |
commit | 3cd4753b98c9bb96618ec71ebac2c14a02182a97 (patch) | |
tree | ce7672e81b49e46081ac155c8ff27d1e05340561 /extensions/browser/value_store/testing_value_store.cc | |
parent | b491db9e9a27d156716089d360bba9bc51892006 (diff) | |
download | chromium_src-3cd4753b98c9bb96618ec71ebac2c14a02182a97.zip chromium_src-3cd4753b98c9bb96618ec71ebac2c14a02182a97.tar.gz chromium_src-3cd4753b98c9bb96618ec71ebac2c14a02182a97.tar.bz2 |
Removed key member from ValueStore::Error.
The key member was rarely set and removal simplifies the code.
Review URL: https://codereview.chromium.org/1460553002
Cr-Commit-Position: refs/heads/master@{#362257}
Diffstat (limited to 'extensions/browser/value_store/testing_value_store.cc')
-rw-r--r-- | extensions/browser/value_store/testing_value_store.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/extensions/browser/value_store/testing_value_store.cc b/extensions/browser/value_store/testing_value_store.cc index f4002de..2629538 100644 --- a/extensions/browser/value_store/testing_value_store.cc +++ b/extensions/browser/value_store/testing_value_store.cc @@ -133,6 +133,5 @@ bool TestingValueStore::RestoreKey(const std::string& key) { } scoped_ptr<ValueStore::Error> TestingValueStore::TestingError() { - return make_scoped_ptr(new ValueStore::Error( - error_code_, kGenericErrorMessage, scoped_ptr<std::string>())); + return ValueStore::Error::Create(error_code_, kGenericErrorMessage); } |