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

Commit

Permalink
put web data files in the correct partition directory
Browse files Browse the repository at this point in the history
auditors: @bbondy, @darkdh
  • Loading branch information
bridiver committed Aug 23, 2016
1 parent 5da0d3b commit 9659cbc
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions brave/browser/brave_browser_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,10 @@ BraveBrowserContext::BraveBrowserContext(const std::string& partition,
#endif
} else {
// Initialize autofill db
base::FilePath user_dir;
PathService::Get(brightray::DIR_USER_DATA, &user_dir);
user_dir = user_dir.Append(kWebDataFilename);
user_dir = user_dir.AddExtension(
base::FilePath::StringType(partition.begin(), partition.end()));
base::FilePath webDataPath = GetPath().Append(kWebDataFilename);

CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
web_database_ = new WebDatabaseService(user_dir,
web_database_ = new WebDatabaseService(webDataPath,
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI),
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB));
web_database_->AddTable(base::WrapUnique(new autofill::AutofillTable));
Expand Down

1 comment on commit 9659cbc

@darkdh
Copy link
Member

@darkdh darkdh commented on 9659cbc 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.