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

Unified Diff: chrome/browser/extensions/fake_safe_browsing_database_manager.cc

Issue 1420053005: Move code in components/safe_browsing_db and chrome/browser/s_b/ under the safe_browsing namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@02_components_move
Patch Set: Remove '// namespace safe_browsing' for a small fwd decl block. Created 5 years, 1 month 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: chrome/browser/extensions/fake_safe_browsing_database_manager.cc
diff --git a/chrome/browser/extensions/fake_safe_browsing_database_manager.cc b/chrome/browser/extensions/fake_safe_browsing_database_manager.cc
index 3dc42740e3e6b4c95449d1745d64bc9379bdc4b2..c6bb900e7010d10196025dc271c7f7a2881fed8b 100644
--- a/chrome/browser/extensions/fake_safe_browsing_database_manager.cc
+++ b/chrome/browser/extensions/fake_safe_browsing_database_manager.cc
@@ -18,10 +18,9 @@
namespace extensions {
FakeSafeBrowsingDatabaseManager::FakeSafeBrowsingDatabaseManager(bool enabled)
- : LocalSafeBrowsingDatabaseManager(
- make_scoped_refptr(SafeBrowsingService::CreateSafeBrowsingService())),
- enabled_(enabled) {
-}
+ : LocalSafeBrowsingDatabaseManager(make_scoped_refptr(
+ safe_browsing::SafeBrowsingService::CreateSafeBrowsingService())),
+ enabled_(enabled) {}
FakeSafeBrowsingDatabaseManager::~FakeSafeBrowsingDatabaseManager() {
}
@@ -97,23 +96,22 @@ bool FakeSafeBrowsingDatabaseManager::CheckExtensionIDs(
// OnCheckExtensionsResult directly because it's protected. Grr!
std::vector<std::string> extension_ids_vector(extension_ids.begin(),
extension_ids.end());
- std::vector<SBFullHash> extension_id_hashes;
+ std::vector<safe_browsing::SBFullHash> extension_id_hashes;
std::transform(extension_ids_vector.begin(), extension_ids_vector.end(),
std::back_inserter(extension_id_hashes),
safe_browsing::StringToSBFullHash);
scoped_ptr<SafeBrowsingCheck> safe_browsing_check(
- new SafeBrowsingCheck(
- std::vector<GURL>(),
- extension_id_hashes,
- client,
- safe_browsing::EXTENSIONBLACKLIST,
- std::vector<SBThreatType>(1, SB_THREAT_TYPE_EXTENSION)));
+ new SafeBrowsingCheck(std::vector<GURL>(), extension_id_hashes, client,
+ safe_browsing::EXTENSIONBLACKLIST,
+ std::vector<safe_browsing::SBThreatType>(
+ 1, safe_browsing::SB_THREAT_TYPE_EXTENSION)));
for (size_t i = 0; i < extension_ids_vector.size(); ++i) {
const std::string& extension_id = extension_ids_vector[i];
if (unsafe_ids_.count(extension_id))
- safe_browsing_check->full_hash_results[i] = SB_THREAT_TYPE_EXTENSION;
+ safe_browsing_check->full_hash_results[i] =
+ safe_browsing::SB_THREAT_TYPE_EXTENSION;
}
base::ThreadTaskRunnerHandle::Get()->PostTask(

Powered by Google App Engine
This is Rietveld 408576698