diff options
author | brettw <brettw@chromium.org> | 2015-06-24 13:54:45 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-24 20:55:38 +0000 |
commit | e6dae46fc681a8ad62f6937a6ac1cab3d51938a9 (patch) | |
tree | 2f75f6b3af2a17c8b1512b6881b00a8c9595ac96 /extensions/browser/value_store | |
parent | 2ef675dbcd5943aad03184b67696330cc910568d (diff) | |
download | chromium_src-e6dae46fc681a8ad62f6937a6ac1cab3d51938a9.zip chromium_src-e6dae46fc681a8ad62f6937a6ac1cab3d51938a9.tar.gz chromium_src-e6dae46fc681a8ad62f6937a6ac1cab3d51938a9.tar.bz2 |
Add more string_util functions to base namespace.
Moves ReplaceFirstSubstringAfterOffset. It also changes the find/replace arguments to be string pieces (normally these are constants).
TBR=gauravsh@chromium.org for chromeos/network
Review URL: https://codereview.chromium.org/1200393002
Cr-Commit-Position: refs/heads/master@{#335999}
Diffstat (limited to 'extensions/browser/value_store')
-rw-r--r-- | extensions/browser/value_store/leveldb_value_store.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extensions/browser/value_store/leveldb_value_store.cc b/extensions/browser/value_store/leveldb_value_store.cc index d29bc74..0db63a17 100644 --- a/extensions/browser/value_store/leveldb_value_store.cc +++ b/extensions/browser/value_store/leveldb_value_store.cc @@ -435,7 +435,8 @@ scoped_ptr<ValueStore::Error> LeveldbValueStore::ToValueStoreError( std::string message = status.ToString(); // The message may contain |db_path_|, which may be considered sensitive // data, and those strings are passed to the extension, so strip it out. - ReplaceSubstringsAfterOffset(&message, 0u, db_path_.AsUTF8Unsafe(), "..."); + base::ReplaceSubstringsAfterOffset( + &message, 0u, db_path_.AsUTF8Unsafe(), "..."); return Error::Create(CORRUPTION, message, key.Pass()); } |