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

Unified Diff: chrome/browser/chromeos/extensions/file_manager_util.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
Index: chrome/browser/chromeos/extensions/file_manager_util.cc
diff --git a/chrome/browser/chromeos/extensions/file_manager_util.cc b/chrome/browser/chromeos/extensions/file_manager_util.cc
index f765324246952af714af4d6fc06cc3c506051cdf..ba8d554b87a8b24835af248469db458ed342e80c 100644
--- a/chrome/browser/chromeos/extensions/file_manager_util.cc
+++ b/chrome/browser/chromeos/extensions/file_manager_util.cc
@@ -23,7 +23,6 @@
#include "chrome/browser/extensions/crx_installer.h"
#include "chrome/browser/extensions/extension_install_prompt.h"
#include "chrome/browser/extensions/extension_service.h"
-#include "chrome/browser/google_apis/operation_registry.h"
#include "chrome/browser/plugin_prefs.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
@@ -60,7 +59,6 @@ using content::BrowserThread;
using content::PluginService;
using content::UserMetricsAction;
using file_handler_util::FileTaskExecutor;
-using gdata::OperationRegistry;
#define FILEBROWSER_EXTENSON_ID "hhaomjibdihmijegdhdafkllkbggdgoj"
const char kFileBrowserDomain[] = FILEBROWSER_EXTENSON_ID;
@@ -183,7 +181,7 @@ std::string GetDialogTypeAsString(
DictionaryValue* ProgessStatusToDictionaryValue(
Profile* profile,
const GURL& origin_url,
- const OperationRegistry::ProgressStatus& status) {
+ const gdata::OperationProgressStatus& status) {
scoped_ptr<DictionaryValue> result(new DictionaryValue());
GURL file_url;
if (file_manager_util::ConvertFileToFileSystemUrl(profile,
@@ -195,10 +193,9 @@ DictionaryValue* ProgessStatusToDictionaryValue(
}
result->SetString("transferState",
- OperationRegistry::OperationTransferStateToString(
- status.transfer_state));
+ OperationTransferStateToString(status.transfer_state));
result->SetString("transferType",
- OperationRegistry::OperationTypeToString(status.operation_type));
+ OperationTypeToString(status.operation_type));
result->SetInteger("processed", static_cast<int>(status.progress_current));
result->SetInteger("total", static_cast<int>(status.progress_total));
return result.release();
@@ -796,11 +793,9 @@ bool ShouldBeOpenedWithPdfPlugin(Profile* profile, const char* file_extension) {
ListValue* ProgressStatusVectorToListValue(
Profile* profile, const GURL& origin_url,
- const std::vector<OperationRegistry::ProgressStatus>& list) {
+ const gdata::OperationProgressStatusList& list) {
scoped_ptr<ListValue> result_list(new ListValue());
- for (std::vector<
- OperationRegistry::ProgressStatus>::const_iterator iter =
- list.begin();
+ for (gdata::OperationProgressStatusList::const_iterator iter = list.begin();
iter != list.end(); ++iter) {
result_list->Append(
ProgessStatusToDictionaryValue(profile, origin_url, *iter));
« no previous file with comments | « chrome/browser/chromeos/extensions/file_manager_util.h ('k') | chrome/browser/chromeos/gdata/drive_api_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698