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

Unified Diff: chrome/browser/extensions/extension_webstore_private_browsertest.cc

Issue 7464009: Removal of Profile from content part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: works now Created 9 years, 5 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/extensions/extension_webstore_private_browsertest.cc
diff --git a/chrome/browser/extensions/extension_webstore_private_browsertest.cc b/chrome/browser/extensions/extension_webstore_private_browsertest.cc
index ee8fdf5f7c64e085811e886f7cdb1de78b066d0e..d7787f058e875bf4335856e59c38144df8f60e2c 100644
--- a/chrome/browser/extensions/extension_webstore_private_browsertest.cc
+++ b/chrome/browser/extensions/extension_webstore_private_browsertest.cc
@@ -86,7 +86,8 @@ class FakeBrowserSignin : public BrowserSignin {
delegate->OnLoginSuccess();
// Fake a token available notification.
- Profile* profile = tab_contents->profile()->GetOriginalProfile();
+ Profile* profile =
+ static_cast<Profile*>(tab_contents->context())->GetOriginalProfile();
TokenService* token_service = profile->GetTokenService();
token_service->IssueAuthTokenForTest(GaiaConstants::kGaiaService,
"new_token");

Powered by Google App Engine
This is Rietveld 408576698