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

Unified Diff: chrome/browser/ui/webui/chromeos/drive_internals_ui.cc

Issue 10939011: Reland "Revert 156830 - drive: Stop exposing operation_registry() from DriveServiceInterface" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « chrome/browser/google_apis/operations_base.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chromeos/drive_internals_ui.cc
diff --git a/chrome/browser/ui/webui/chromeos/drive_internals_ui.cc b/chrome/browser/ui/webui/chromeos/drive_internals_ui.cc
index 0f6b5036cfc269c61e25d82a26f48816e8bf51ed..8c8fa052161756c05c2a1f16850acbf31a0079d3 100644
--- a/chrome/browser/ui/webui/chromeos/drive_internals_ui.cc
+++ b/chrome/browser/ui/webui/chromeos/drive_internals_ui.cc
@@ -18,7 +18,6 @@
#include "chrome/browser/chromeos/gdata/drive_system_service.h"
#include "chrome/browser/google_apis/auth_service.h"
#include "chrome/browser/google_apis/gdata_util.h"
-#include "chrome/browser/google_apis/operation_registry.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/webui/chrome_web_ui_data_source.h"
#include "chrome/common/url_constants.h"
@@ -405,25 +404,22 @@ void DriveInternalsWebUIHandler::OnPeriodicUpdate(const base::ListValue* args) {
void DriveInternalsWebUIHandler::UpdateInFlightOperations(
const gdata::DriveServiceInterface* drive_service) {
- std::vector<gdata::OperationRegistry::ProgressStatus>
- progress_status_list = drive_service->operation_registry()->
- GetProgressStatusList();
+ gdata::OperationProgressStatusList
+ progress_status_list = drive_service->GetProgressStatusList();
base::ListValue in_flight_operations;
for (size_t i = 0; i < progress_status_list.size(); ++i) {
- const gdata::OperationRegistry::ProgressStatus status =
- progress_status_list[i];
+ const gdata::OperationProgressStatus& status = progress_status_list[i];
base::DictionaryValue* dict = new DictionaryValue;
dict->SetInteger("operation_id", status.operation_id);
dict->SetString(
"operation_type",
- gdata::OperationRegistry::OperationTypeToString(status.operation_type));
+ gdata::OperationTypeToString(status.operation_type));
dict->SetString("file_path", status.file_path.AsUTF8Unsafe());
dict->SetString(
"transfer_state",
- gdata::OperationRegistry::OperationTransferStateToString(
- status.transfer_state));
+ gdata::OperationTransferStateToString(status.transfer_state));
dict->SetString(
"start_time",
gdata::util::FormatTimeAsStringLocaltime(status.start_time));
« no previous file with comments | « chrome/browser/google_apis/operations_base.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698