summaryrefslogtreecommitdiffstats
path: root/chrome/browser/external_tab_container.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/external_tab_container.cc')
-rw-r--r--chrome/browser/external_tab_container.cc10
1 files changed, 1 insertions, 9 deletions
diff --git a/chrome/browser/external_tab_container.cc b/chrome/browser/external_tab_container.cc
index 9689ade..3d9251a 100644
--- a/chrome/browser/external_tab_container.cc
+++ b/chrome/browser/external_tab_container.cc
@@ -172,10 +172,7 @@ void ExternalTabContainer::Uninitialize() {
tab_contents_ = NULL;
}
- if (request_context_.get()) {
- AutomationRequestContext::CleanupRequestContext(
- request_context_.release());
- }
+ request_context_ = NULL;
}
bool ExternalTabContainer::Reinitialize(
@@ -699,11 +696,6 @@ bool ExternalTabContainer::OnGoToEntryOffset(int offset) {
void ExternalTabContainer::InitializeAutomationRequestContext(
int tab_handle) {
- if (request_context_.get()) {
- AutomationRequestContext::CleanupRequestContext(
- request_context_.release());
- }
-
request_context_ =
AutomationRequestContext::CreateAutomationURLRequestContextForTab(
tab_handle, tab_contents_->profile(),