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

Unified Diff: chrome/browser/drive/drive_app_registry.h

Issue 134213003: Revert of Implement DriveAppRegistry::UninstallApp() and GetAppList(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/drive/drive_app_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/drive/drive_app_registry.h
diff --git a/chrome/browser/drive/drive_app_registry.h b/chrome/browser/drive/drive_app_registry.h
index 022ac3bf645702ca42068f455fcc8de5830d0d1c..cb15dc12050b1ca81600c9746c06eb1f3ba9b2c3 100644
--- a/chrome/browser/drive/drive_app_registry.h
+++ b/chrome/browser/drive/drive_app_registry.h
@@ -51,9 +51,6 @@
GURL create_url;
};
-// Callback type for UninstallApp().
-typedef base::Callback<void(google_apis::GDataErrorCode)> UninstallCallback;
-
// Keeps the track of installed drive applications in-memory.
class DriveAppRegistry {
public:
@@ -66,19 +63,6 @@
const std::string& mime_type,
std::vector<DriveAppInfo>* apps) const;
- // Returns the list of all Drive apps installed.
- void GetAppList(std::vector<DriveAppInfo>* apps) const;
-
- // Uninstalls the app specified by |app_id|. This method sends requests to the
- // remote server, and returns the result to |callback| asynchronously.
- // |callback| must not be null.
- void UninstallApp(const std::string& app_id,
- const UninstallCallback& callback);
-
- // Checks whether UinstallApp is supported. The feature is available only for
- // clients with whitelisted API keys (like Official Google Chrome build).
- static bool IsAppUninstallSupported();
-
// Updates this registry by fetching the data from the server.
void Update();
@@ -90,11 +74,6 @@
// data from the server.
void UpdateAfterGetAppList(google_apis::GDataErrorCode gdata_error,
scoped_ptr<google_apis::AppList> app_list);
-
- // Part of UninstallApp(). Receives the response from the server.
- void OnAppUninstalled(const std::string& app_id,
- const UninstallCallback& callback,
- google_apis::GDataErrorCode error);
// Map of application id to each app's info.
std::map<std::string, DriveAppInfo> all_apps_;
« no previous file with comments | « no previous file | chrome/browser/drive/drive_app_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698