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

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

Issue 3036038: ChromeFrame currently overrides the request context for intercepting network ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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: chrome/browser/automation/automation_provider.cc
===================================================================
--- chrome/browser/automation/automation_provider.cc (revision 54821)
+++ chrome/browser/automation/automation_provider.cc (working copy)
@@ -1251,12 +1251,7 @@
NavigationController* tab = tab_tracker_->GetResource(handle);
// Since we are running on the UI thread don't call GetURLRequestContext().
- scoped_refptr<URLRequestContextGetter> request_context =
- tab->tab_contents()->request_context();
- if (!request_context.get())
- request_context = tab->profile()->GetRequestContext();
-
- *value = GetCookiesForURL(url, request_context.get());
+ *value = GetCookiesForURL(url, tab->profile()->GetRequestContext());
*value_size = static_cast<int>(value->size());
}
}
@@ -1270,12 +1265,7 @@
if (url.is_valid() && tab_tracker_->ContainsHandle(handle)) {
NavigationController* tab = tab_tracker_->GetResource(handle);
- scoped_refptr<URLRequestContextGetter> request_context =
- tab->tab_contents()->request_context();
- if (!request_context.get())
- request_context = tab->profile()->GetRequestContext();
-
- if (SetCookieForURL(url, value, request_context.get()))
+ if (SetCookieForURL(url, value, tab->profile()->GetRequestContext()))
*response_value = 1;
}
}

Powered by Google App Engine
This is Rietveld 408576698