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

Side by Side Diff: chrome/browser/drive/fake_drive_service.cc

Issue 127463004: Add UninstallApp() method to DriveAPIService interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: null Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/drive/fake_drive_service.h ('k') | chrome/browser/drive/gdata_wapi_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/drive/fake_drive_service.h" 5 #include "chrome/browser/drive/fake_drive_service.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after
1249 1249
1250 CancelCallback FakeDriveService::AuthorizeApp( 1250 CancelCallback FakeDriveService::AuthorizeApp(
1251 const std::string& resource_id, 1251 const std::string& resource_id,
1252 const std::string& app_id, 1252 const std::string& app_id,
1253 const AuthorizeAppCallback& callback) { 1253 const AuthorizeAppCallback& callback) {
1254 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 1254 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
1255 DCHECK(!callback.is_null()); 1255 DCHECK(!callback.is_null());
1256 return CancelCallback(); 1256 return CancelCallback();
1257 } 1257 }
1258 1258
1259 CancelCallback FakeDriveService::UninstallApp(
1260 const std::string& app_id,
1261 const google_apis::EntryActionCallback& callback) {
1262 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
1263 DCHECK(!callback.is_null());
1264 return CancelCallback();
1265 }
1266
1259 CancelCallback FakeDriveService::GetResourceListInDirectoryByWapi( 1267 CancelCallback FakeDriveService::GetResourceListInDirectoryByWapi(
1260 const std::string& directory_resource_id, 1268 const std::string& directory_resource_id,
1261 const google_apis::GetResourceListCallback& callback) { 1269 const google_apis::GetResourceListCallback& callback) {
1262 return GetResourceListInDirectory( 1270 return GetResourceListInDirectory(
1263 directory_resource_id == util::kWapiRootDirectoryResourceId ? 1271 directory_resource_id == util::kWapiRootDirectoryResourceId ?
1264 GetRootResourceId() : 1272 GetRootResourceId() :
1265 directory_resource_id, 1273 directory_resource_id,
1266 callback); 1274 callback);
1267 } 1275 }
1268 1276
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
1696 FROM_HERE, 1704 FROM_HERE,
1697 base::Bind(callback, HTTP_SUCCESS, base::Passed(&resource_list))); 1705 base::Bind(callback, HTTP_SUCCESS, base::Passed(&resource_list)));
1698 } 1706 }
1699 1707
1700 GURL FakeDriveService::GetNewUploadSessionUrl() { 1708 GURL FakeDriveService::GetNewUploadSessionUrl() {
1701 return GURL("https://upload_session_url/" + 1709 return GURL("https://upload_session_url/" +
1702 base::Int64ToString(next_upload_sequence_number_++)); 1710 base::Int64ToString(next_upload_sequence_number_++));
1703 } 1711 }
1704 1712
1705 } // namespace drive 1713 } // namespace drive
OLDNEW
« no previous file with comments | « chrome/browser/drive/fake_drive_service.h ('k') | chrome/browser/drive/gdata_wapi_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698