Chromium Code Reviews| Index: chrome/browser/chromeos/extensions/file_browser_private_api.cc |
| diff --git a/chrome/browser/chromeos/extensions/file_browser_private_api.cc b/chrome/browser/chromeos/extensions/file_browser_private_api.cc |
| index c52d35102109abd52c973e15721189a0a5101252..edf20d8bb6d6f47fbd7b9ae8a2f59c1f7c8d0023 100644 |
| --- a/chrome/browser/chromeos/extensions/file_browser_private_api.cc |
| +++ b/chrome/browser/chromeos/extensions/file_browser_private_api.cc |
| @@ -2381,6 +2381,20 @@ void SearchDriveFunction::OnSearch( |
| SendResponse(true); |
| } |
| +bool ClearDriveCacheFunction::RunImpl() { |
| + gdata::GDataSystemService* system_service = |
| + gdata::GDataSystemServiceFactory::GetForProfile(profile_); |
| + // |system_service| is NULL if incognito window / guest login. |
| + if (!system_service || !system_service->file_system()) |
| + return false; |
| + |
| + // TODO(yoshiki): Receive a callback from JS-side and pass it to ClearCache(). |
|
satorux1
2012/08/03 17:54:21
Please file a bug that describes the plan and add
yoshiki
2012/08/03 20:09:48
Done.
|
| + system_service->ClearCache(base::Callback<void(bool)>()); |
| + |
| + SendResponse(true); |
| + return true; |
| +} |
| + |
| bool GetNetworkConnectionStateFunction::RunImpl() { |
| chromeos::NetworkLibrary* network_library = |
| chromeos::CrosLibrary::Get()->GetNetworkLibrary(); |