Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
don't shutdown autofill on OTR context because it doesn't run there
Browse files Browse the repository at this point in the history
  • Loading branch information
bridiver committed Aug 25, 2016
1 parent 23af031 commit a72b742
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions brave/browser/brave_browser_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ BraveBrowserContext::~BraveBrowserContext() {
user_prefs_registrar_->RemoveAll();

if (!IsOffTheRecord()) {
autofill_data_->ShutdownOnUIThread();
web_database_->ShutdownDatabase();

// temporary fix for https://github.com/brave/browser-laptop/issues/2335
// TODO(brivdiver) - it seems like something is holding onto a reference to
// url_request_context_getter or the url_request_context and is preventing
Expand Down Expand Up @@ -165,9 +168,6 @@ BraveBrowserContext::~BraveBrowserContext() {

BrowserContextDependencyManager::GetInstance()->
DestroyBrowserContextServices(this);

autofill_data_->ShutdownOnUIThread();
web_database_->ShutdownDatabase();
}

// static
Expand Down

1 comment on commit a72b742

@darkdh
Copy link
Member

@darkdh darkdh commented on a72b742 Aug 25, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++

Please sign in to comment.