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

Unified Diff: chrome/browser/chromeos/drive/drive_protocol_handler.cc

Issue 560313002: Use ExternalFileSystemBackend in the DriveURLRequestJob. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed. Created 6 years, 3 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/chromeos/drive/drive_protocol_handler.cc
diff --git a/chrome/browser/chromeos/drive/drive_protocol_handler.cc b/chrome/browser/chromeos/drive/drive_protocol_handler.cc
index 227fc7ac110c206af04f4075522e18db94ae5548..f76d9c19cd6067cf54f72075c5e6ccccaeac283d 100644
--- a/chrome/browser/chromeos/drive/drive_protocol_handler.cc
+++ b/chrome/browser/chromeos/drive/drive_protocol_handler.cc
@@ -5,23 +5,14 @@
#include "chrome/browser/chromeos/drive/drive_protocol_handler.h"
#include "base/logging.h"
-#include "base/threading/sequenced_worker_pool.h"
#include "chrome/browser/chromeos/drive/drive_url_request_job.h"
-#include "chrome/browser/chromeos/drive/file_system_util.h"
-#include "content/public/browser/browser_thread.h"
#include "net/url_request/url_request.h"
#include "url/gurl.h"
-using content::BrowserThread;
-
namespace drive {
DriveProtocolHandler::DriveProtocolHandler(void* profile_id)
: profile_id_(profile_id) {
- scoped_refptr<base::SequencedWorkerPool> blocking_pool =
- BrowserThread::GetBlockingPool();
- blocking_task_runner_ =
- blocking_pool->GetSequencedTaskRunner(blocking_pool->GetSequenceToken());
}
DriveProtocolHandler::~DriveProtocolHandler() {
@@ -30,11 +21,7 @@ DriveProtocolHandler::~DriveProtocolHandler() {
net::URLRequestJob* DriveProtocolHandler::MaybeCreateJob(
net::URLRequest* request, net::NetworkDelegate* network_delegate) const {
DVLOG(1) << "Handling url: " << request->url().spec();
- return new DriveURLRequestJob(
- base::Bind(&util::GetFileSystemByProfileId, profile_id_),
- blocking_task_runner_.get(),
- request,
- network_delegate);
+ return new DriveURLRequestJob(profile_id_, request, network_delegate);
}
} // namespace drive
« no previous file with comments | « chrome/browser/chromeos/drive/drive_protocol_handler.h ('k') | chrome/browser/chromeos/drive/drive_url_request_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698