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

Unified Diff: chrome/browser/search/search_unittest.cc

Issue 2776493005: Convert SupervisedUserResourceThrottle to a NavigationThrottle. (Closed)
Patch Set: Response to comments Created 3 years, 9 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: chrome/browser/search/search_unittest.cc
diff --git a/chrome/browser/search/search_unittest.cc b/chrome/browser/search/search_unittest.cc
index dd04bc05bbd4366e54636ff1b9270eb9111ea677..a99098d27fa91ca5953d95b91d1600c5baadcccc 100644
--- a/chrome/browser/search/search_unittest.cc
+++ b/chrome/browser/search/search_unittest.cc
@@ -438,11 +438,10 @@ TEST_F(SearchTest, UseLocalNTPIfNTPURLIsBlockedForSupervisedUser) {
// Block access to foo.com in the URL filter.
SupervisedUserService* supervised_user_service =
SupervisedUserServiceFactory::GetForProfile(profile());
- SupervisedUserURLFilter* url_filter =
- supervised_user_service->GetURLFilterForUIThread();
+ SupervisedUserURLFilter* url_filter = supervised_user_service->GetURLFilter();
std::map<std::string, bool> hosts;
hosts["foo.com"] = false;
- url_filter->SetManualHosts(&hosts);
+ url_filter->SetManualHosts(std::move(hosts));
EXPECT_EQ(GURL(chrome::kChromeSearchLocalNtpUrl),
GetNewTabPageURL(profile()));

Powered by Google App Engine
This is Rietveld 408576698