diff options
author | dgrogan <dgrogan@chromium.org> | 2015-01-08 10:53:29 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-08 18:55:09 +0000 |
commit | 7d056649ce984160b7492e81794e99d007ee03e1 (patch) | |
tree | fd19451a2e58857ed70c1825d1094052d5a89542 /chrome/browser/prefs | |
parent | a4b98fb5b518e886851131916816c0b607768392 (diff) | |
download | chromium_src-7d056649ce984160b7492e81794e99d007ee03e1.zip chromium_src-7d056649ce984160b7492e81794e99d007ee03e1.tar.gz chromium_src-7d056649ce984160b7492e81794e99d007ee03e1.tar.bz2 |
LevelDB: Remove IsIOError(status) in favor of status.IsIOError
IsIOError evolved from a method that did nuanced checks before settling
on just checking if a status was an IOError or not. It was overlooked that
such a method already exists.
Review URL: https://codereview.chromium.org/844643002
Cr-Commit-Position: refs/heads/master@{#310547}
Diffstat (limited to 'chrome/browser/prefs')
-rw-r--r-- | chrome/browser/prefs/leveldb_pref_store.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/prefs/leveldb_pref_store.cc b/chrome/browser/prefs/leveldb_pref_store.cc index 7409f95..86666b1 100644 --- a/chrome/browser/prefs/leveldb_pref_store.cc +++ b/chrome/browser/prefs/leveldb_pref_store.cc @@ -15,7 +15,6 @@ #include "base/threading/thread_restrictions.h" #include "base/time/time.h" #include "base/values.h" -#include "third_party/leveldatabase/env_chromium.h" #include "third_party/leveldatabase/src/include/leveldb/db.h" #include "third_party/leveldatabase/src/include/leveldb/write_batch.h" @@ -116,7 +115,7 @@ void LevelDBPrefStore::OpenDB(const base::FilePath& path, reading_results->error |= OPENED; break; } - if (leveldb_env::IsIOError(status)) { + if (status.IsIOError()) { reading_results->error |= IO_ERROR; break; } |