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

Unified Diff: chrome/browser/browsing_data/browsing_data_cookie_helper_unittest.cc

Issue 1613473002: Replace TestingProfile::GetCookieMonster with GetCookieStore. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed some stuff Created 4 years, 11 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 | « no previous file | chrome/test/base/testing_profile.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data/browsing_data_cookie_helper_unittest.cc
diff --git a/chrome/browser/browsing_data/browsing_data_cookie_helper_unittest.cc b/chrome/browser/browsing_data/browsing_data_cookie_helper_unittest.cc
index a663336be69686cf8e72c15b0cf0b33a488cc04b..313bd3b0ae970269799d721bcda33655e90b7d53 100644
--- a/chrome/browser/browsing_data/browsing_data_cookie_helper_unittest.cc
+++ b/chrome/browser/browsing_data/browsing_data_cookie_helper_unittest.cc
@@ -110,23 +110,21 @@ class BrowsingDataCookieHelperTest : public testing::Test {
}
void CreateCookiesForTest() {
- scoped_refptr<net::CookieMonster> cookie_monster =
- testing_profile_->GetCookieMonster();
- cookie_monster->SetCookieWithOptionsAsync(
+ net::CookieStore* cookie_store = testing_profile_->GetCookieStore();
+ cookie_store->SetCookieWithOptionsAsync(
GURL("http://www.google.com"), "A=1", net::CookieOptions(),
net::CookieMonster::SetCookiesCallback());
- cookie_monster->SetCookieWithOptionsAsync(
+ cookie_store->SetCookieWithOptionsAsync(
GURL("http://www.gmail.google.com"), "B=1", net::CookieOptions(),
net::CookieMonster::SetCookiesCallback());
}
void CreateCookiesForDomainCookieTest() {
- scoped_refptr<net::CookieMonster> cookie_monster =
- testing_profile_->GetCookieMonster();
- cookie_monster->SetCookieWithOptionsAsync(
+ net::CookieStore* cookie_store = testing_profile_->GetCookieStore();
+ cookie_store->SetCookieWithOptionsAsync(
GURL("http://www.google.com"), "A=1", net::CookieOptions(),
net::CookieMonster::SetCookiesCallback());
- cookie_monster->SetCookieWithOptionsAsync(
+ cookie_store->SetCookieWithOptionsAsync(
GURL("http://www.google.com"), "A=2; Domain=.www.google.com ",
net::CookieOptions(), net::CookieMonster::SetCookiesCallback());
}
« no previous file with comments | « no previous file | chrome/test/base/testing_profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698