| Index: chrome/browser/google_apis/request_registry.cc
|
| diff --git a/chrome/browser/google_apis/request_registry.cc b/chrome/browser/google_apis/request_registry.cc
|
| index e7b8f7486ea26243757bc541490d78f60427ca5e..240b388129b8bdc5451d1287825819b5c4689e1b 100644
|
| --- a/chrome/browser/google_apis/request_registry.cc
|
| +++ b/chrome/browser/google_apis/request_registry.cc
|
| @@ -60,36 +60,6 @@ RequestRegistry::RequestRegistry() {
|
| }
|
|
|
| RequestRegistry::~RequestRegistry() {
|
| - DCHECK(in_flight_requests_.IsEmpty());
|
| -}
|
| -
|
| -void RequestRegistry::CancelAll() {
|
| - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| -
|
| - for (RequestIDMap::iterator iter(&in_flight_requests_);
|
| - !iter.IsAtEnd();
|
| - iter.Advance()) {
|
| - Request* request = iter.GetCurrentValue();
|
| - CancelRequest(request);
|
| - // CancelRequest may immediately trigger OnRequestFinish and remove the
|
| - // request from the map, but IDMap is designed to be safe on such remove
|
| - // while iteration.
|
| - }
|
| -}
|
| -
|
| -bool RequestRegistry::CancelForFilePath(const base::FilePath& file_path) {
|
| - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| -
|
| - for (RequestIDMap::iterator iter(&in_flight_requests_);
|
| - !iter.IsAtEnd();
|
| - iter.Advance()) {
|
| - Request* request = iter.GetCurrentValue();
|
| - if (request->progress_status().file_path == file_path) {
|
| - CancelRequest(request);
|
| - return true;
|
| - }
|
| - }
|
| - return false;
|
| }
|
|
|
| void RequestRegistry::CancelRequest(Request* request) {
|
|
|