| Index: chrome/browser/chromeos/gdata/gdata_protocol_handler.cc
|
| diff --git a/chrome/browser/chromeos/gdata/gdata_protocol_handler.cc b/chrome/browser/chromeos/gdata/gdata_protocol_handler.cc
|
| index a53496f2560e2fc527c85073da2026cc38f5e3a0..365a5ac100ecc12a39409f773a032b8db61543ac 100644
|
| --- a/chrome/browser/chromeos/gdata/gdata_protocol_handler.cc
|
| +++ b/chrome/browser/chromeos/gdata/gdata_protocol_handler.cc
|
| @@ -127,7 +127,6 @@ void CancelGDataDownloadOnUIThread(const FilePath& gdata_file_path) {
|
| class GDataURLRequestJob : public net::URLRequestJob {
|
| public:
|
| explicit GDataURLRequestJob(net::URLRequest* request);
|
| - virtual ~GDataURLRequestJob();
|
|
|
| // net::URLRequestJob overrides:
|
| virtual void Start() OVERRIDE;
|
| @@ -139,6 +138,9 @@ class GDataURLRequestJob : public net::URLRequestJob {
|
| int buf_size,
|
| int* bytes_read) OVERRIDE;
|
|
|
| + protected:
|
| + virtual ~GDataURLRequestJob();
|
| +
|
| private:
|
| // Helper for Start() to let us start asynchronously.
|
| void StartAsync(GDataFileSystem** file_system);
|
| @@ -233,10 +235,6 @@ GDataURLRequestJob::GDataURLRequestJob(net::URLRequest* request)
|
| download_growable_buf_, download_growable_buf_->capacity());
|
| }
|
|
|
| -GDataURLRequestJob::~GDataURLRequestJob() {
|
| - CloseFileStream();
|
| -}
|
| -
|
| void GDataURLRequestJob::Start() {
|
| DVLOG(1) << "Starting request";
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
|
| @@ -461,6 +459,12 @@ bool GDataURLRequestJob::ReadRawData(net::IOBuffer* dest,
|
| return rc;
|
| }
|
|
|
| +//======================= GDataURLRequestJob protected methods ================
|
| +
|
| +GDataURLRequestJob::~GDataURLRequestJob() {
|
| + CloseFileStream();
|
| +}
|
| +
|
| //======================= GDataURLRequestJob private methods ===================
|
|
|
| void GDataURLRequestJob::StartAsync(GDataFileSystem** file_system) {
|
|
|