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

Unified Diff: trunk/src/components/autofill/content/browser/wallet/wallet_signin_helper_unittest.cc

Issue 23551005: Revert 219709 "Remove the Extensions URLRequestContext." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 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: trunk/src/components/autofill/content/browser/wallet/wallet_signin_helper_unittest.cc
===================================================================
--- trunk/src/components/autofill/content/browser/wallet/wallet_signin_helper_unittest.cc (revision 219785)
+++ trunk/src/components/autofill/content/browser/wallet/wallet_signin_helper_unittest.cc (working copy)
@@ -11,7 +11,6 @@
#include "chrome/test/base/testing_profile.h"
#include "components/autofill/content/browser/wallet/wallet_service_url.h"
#include "components/autofill/content/browser/wallet/wallet_signin_helper_delegate.h"
-#include "content/public/browser/storage_partition.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "google_apis/gaia/gaia_constants.h"
#include "google_apis/gaia/gaia_urls.h"
@@ -202,6 +201,7 @@
TEST_F(WalletSigninHelperTest, GetWalletCookieValueWhenPresent) {
EXPECT_CALL(mock_delegate_, OnDidFetchWalletCookieValue("gdToken"));
+ net::CookieMonster* cookie_monster = new net::CookieMonster(NULL, NULL);
net::CookieOptions httponly_options;
httponly_options.set_include_httponly();
scoped_ptr<net::CanonicalCookie> cookie(
@@ -212,12 +212,9 @@
net::CookieList cookie_list;
cookie_list.push_back(*cookie);
-
- net::CookieMonster* cookie_monster =
- content::BrowserContext::GetDefaultStoragePartition(&browser_context_)->
- GetCookieStoreForScheme(GetPassiveAuthUrl().scheme())->
- GetCookieMonster();
cookie_monster->InitializeFrom(cookie_list);
+ browser_context_.GetRequestContext()->GetURLRequestContext()
+ ->set_cookie_store(cookie_monster);
signin_helper_->StartWalletCookieValueFetch();
base::RunLoop().RunUntilIdle();
}
« no previous file with comments | « trunk/src/chrome/test/base/testing_profile.cc ('k') | trunk/src/content/browser/appcache/chrome_appcache_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698