summaryrefslogtreecommitdiffstats
path: root/chrome/browser/privacy_blacklist
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-30 02:30:42 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-30 02:30:42 +0000
commitef8101ae22bbdf3d8dca519c5b01e08e3e42190e (patch)
tree5d6527ab6d15c74f294efec2f384da3a9f4a677c /chrome/browser/privacy_blacklist
parent1874347367e3625404c5306183e72f9d80397a3b (diff)
downloadchromium_src-ef8101ae22bbdf3d8dca519c5b01e08e3e42190e.zip
chromium_src-ef8101ae22bbdf3d8dca519c5b01e08e3e42190e.tar.gz
chromium_src-ef8101ae22bbdf3d8dca519c5b01e08e3e42190e.tar.bz2
Fix silly failure to actually initialize the scoped_refptrs.
TBR=darin BUG=none TEST=none Review URL: http://codereview.chromium.org/553162 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37601 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/privacy_blacklist')
-rw-r--r--chrome/browser/privacy_blacklist/blacklist_interceptor_unittest.cc2
-rw-r--r--chrome/browser/privacy_blacklist/blacklist_perftest.cc3
2 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/privacy_blacklist/blacklist_interceptor_unittest.cc b/chrome/browser/privacy_blacklist/blacklist_interceptor_unittest.cc
index bc866fc..240870a 100644
--- a/chrome/browser/privacy_blacklist/blacklist_interceptor_unittest.cc
+++ b/chrome/browser/privacy_blacklist/blacklist_interceptor_unittest.cc
@@ -56,7 +56,7 @@ TEST_F(BlacklistInterceptorTest, Basic) {
TEST_F(BlacklistInterceptorTest, Intercepted) {
EXPECT_FALSE(InterceptedTestRequest(kDataUrl, NULL));
- scoped_refptr<Blacklist> blacklist;
+ scoped_refptr<Blacklist> blacklist = new Blacklist();
Blacklist::Provider* provider = new Blacklist::Provider();
blacklist->AddProvider(provider);
Blacklist::Entry* entry =
diff --git a/chrome/browser/privacy_blacklist/blacklist_perftest.cc b/chrome/browser/privacy_blacklist/blacklist_perftest.cc
index 1357ed4..cccbad5 100644
--- a/chrome/browser/privacy_blacklist/blacklist_perftest.cc
+++ b/chrome/browser/privacy_blacklist/blacklist_perftest.cc
@@ -109,6 +109,9 @@ static std::string GetURL(const std::string& pattern, bool invert) {
}
class BlacklistPerfTest : public testing::Test {
+ public:
+ BlacklistPerfTest() : blacklist_(new Blacklist()) {}
+
protected:
virtual void SetUp() {
srand(kSeed);