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

Unified Diff: chrome/browser/automation/automation_util.cc

Issue 7464009: Removal of Profile from content part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: browser_context 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/automation/automation_util.cc
diff --git a/chrome/browser/automation/automation_util.cc b/chrome/browser/automation/automation_util.cc
index fa6a7b9754aafc3ba4c9f53e18aaf0e4f2b92f67..38499a8ec35ff93eb8d6ae3419742fb6f5707fe7 100644
--- a/chrome/browser/automation/automation_util.cc
+++ b/chrome/browser/automation/automation_util.cc
@@ -136,7 +136,7 @@ TabContents* GetTabContentsAt(int browser_index, int tab_index) {
net::URLRequestContextGetter* GetRequestContext(TabContents* contents) {
// Since we may be on the UI thread don't call GetURLRequestContext().
// Get the request context specific to the current TabContents and app.
- return contents->profile()->GetRequestContextForRenderProcess(
+ return contents->browser_context()->GetRequestContextForRenderProcess(
contents->render_view_host()->process()->id());
}

Powered by Google App Engine
This is Rietveld 408576698