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

Unified Diff: components/safe_browsing_db/prefix_set.cc

Issue 1399843003: Move prefix_set and parts of s_b_util into a new component safe_browsing_db. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use group instead of a static_library for targets that have no sources. Created 5 years, 2 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
« no previous file with comments | « components/safe_browsing_db/prefix_set.h ('k') | components/safe_browsing_db/prefix_set_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_browsing_db/prefix_set.cc
diff --git a/chrome/browser/safe_browsing/prefix_set.cc b/components/safe_browsing_db/prefix_set.cc
similarity index 99%
rename from chrome/browser/safe_browsing/prefix_set.cc
rename to components/safe_browsing_db/prefix_set.cc
index 7cd69e99177d3a8d1512614690c541cf319869be..e6b4ecc029c7e3d9f7846691d8894d4e08fa2a30 100644
--- a/chrome/browser/safe_browsing/prefix_set.cc
+++ b/components/safe_browsing_db/prefix_set.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/safe_browsing/prefix_set.h"
+#include "components/safe_browsing_db/prefix_set.h"
#include <algorithm>
@@ -353,7 +353,8 @@ void PrefixSet::AddRun(SBPrefix index_prefix,
deltas_.reserve(EstimateFinalCount(index_prefix, deltas_.size()));
}
- index_.push_back(std::make_pair(index_prefix, deltas_.size()));
+ index_.push_back(
+ std::make_pair(index_prefix, static_cast<uint32>(deltas_.size())));
deltas_.insert(deltas_.end(), run_begin, run_end);
}
« no previous file with comments | « components/safe_browsing_db/prefix_set.h ('k') | components/safe_browsing_db/prefix_set_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698