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

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

Issue 11027070: Moved JsonPrefStore to use SequencedWorkerPool (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/testing_automation_provider.cc
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
index 47a4a1220f4dff350722d8a8af2b44a302298706..8479e641c224bb809b573536d5a8aaa2010be9b3 100644
--- a/chrome/browser/automation/testing_automation_provider.cc
+++ b/chrome/browser/automation/testing_automation_provider.cc
@@ -19,6 +19,7 @@
#include "base/path_service.h"
#include "base/process.h"
#include "base/process_util.h"
+#include "base/sequenced_task_runner.h"
#include "base/stringprintf.h"
#include "base/threading/thread_restrictions.h"
#include "base/time.h"
@@ -1288,7 +1289,9 @@ void TestingAutomationProvider::GetBookmarksAsJSON(
return;
}
scoped_refptr<BookmarkStorage> storage(
- new BookmarkStorage(browser->profile(), bookmark_model));
+ new BookmarkStorage(browser->profile(),
+ bookmark_model,
+ browser->profile()->GetIOTaskRunner()));
if (!storage->SerializeData(&bookmarks_as_json)) {
reply.SendError("Failed to serialize bookmarks");
return;

Powered by Google App Engine
This is Rietveld 408576698