Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: components/safe_browsing_db/v4_store.cc

Issue 2231753002: components: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: One more call site Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/safe_browsing_db/v4_store.cc
diff --git a/components/safe_browsing_db/v4_store.cc b/components/safe_browsing_db/v4_store.cc
index 45c003f28a2af78a3fe945b2413efcc4ada7821e..fd01889ead6616f63f034fac3c31f070bdcce97a 100644
--- a/components/safe_browsing_db/v4_store.cc
+++ b/components/safe_browsing_db/v4_store.cc
@@ -419,7 +419,7 @@ ApplyUpdateResult V4Store::MergeUpdate(const HashPrefixMap& old_prefixes_map,
hash_prefix_map_[next_smallest_prefix_size] += next_smallest_prefix_old;
if (calculate_checksum) {
- checksum_ctx->Update(string_as_array(&next_smallest_prefix_old),
+ checksum_ctx->Update(base::string_as_array(&next_smallest_prefix_old),
next_smallest_prefix_size);
}
} else {
@@ -440,8 +440,9 @@ ApplyUpdateResult V4Store::MergeUpdate(const HashPrefixMap& old_prefixes_map,
next_smallest_prefix_additions;
if (calculate_checksum) {
- checksum_ctx->Update(string_as_array(&next_smallest_prefix_additions),
- next_smallest_prefix_size);
+ checksum_ctx->Update(
+ base::string_as_array(&next_smallest_prefix_additions),
+ next_smallest_prefix_size);
}
// Update the iterator map, which means that we have merged one hash
@@ -462,7 +463,7 @@ ApplyUpdateResult V4Store::MergeUpdate(const HashPrefixMap& old_prefixes_map,
if (calculate_checksum) {
std::string checksum(crypto::kSHA256Length, 0);
- checksum_ctx->Finish(string_as_array(&checksum), checksum.size());
+ checksum_ctx->Finish(base::string_as_array(&checksum), checksum.size());
if (checksum != expected_checksum) {
std::string checksum_base64, expected_checksum_base64;
base::Base64Encode(checksum, &checksum_base64);
« no previous file with comments | « components/safe_browsing_db/database_manager.cc ('k') | components/search_engines/default_search_policy_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698