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

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

Issue 10828385: Rename DocumentsServiceInterface to DriveServiceInterface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unnecessary includes. Created 8 years, 4 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/chromeos/system/ash_system_tray_delegate.cc ('k') | chrome/chrome_browser.gypi » ('j') | 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 b2d8c3c0a92cc46cbb15c74685697aaeb5da1f15..f6f65091927cbf7fcefa566eef6e206711d6745b 100644
--- a/chrome/browser/ui/webui/chromeos/drive_internals_ui.cc
+++ b/chrome/browser/ui/webui/chromeos/drive_internals_ui.cc
@@ -11,7 +11,7 @@
#include "base/memory/weak_ptr.h"
#include "base/path_service.h"
#include "base/sys_info.h"
-#include "chrome/browser/chromeos/gdata/documents_service_interface.h"
+#include "chrome/browser/chromeos/gdata/drive_service_interface.h"
#include "chrome/browser/chromeos/gdata/gdata.pb.h"
#include "chrome/browser/chromeos/gdata/gdata_auth_service.h"
#include "chrome/browser/chromeos/gdata/gdata_cache.h"
@@ -222,16 +222,15 @@ void DriveInternalsWebUIHandler::OnPageLoaded(const base::ListValue* args) {
if (!system_service)
return;
- gdata::DocumentsServiceInterface* documents_service =
- system_service->docs_service();
- DCHECK(documents_service);
+ gdata::DriveServiceInterface* drive_service = system_service->drive_service();
+ DCHECK(drive_service);
// Update the auth status section.
base::DictionaryValue auth_status;
auth_status.SetBoolean("has-refresh-token",
- documents_service->HasRefreshToken());
+ drive_service->HasRefreshToken());
auth_status.SetBoolean("has-access-token",
- documents_service->HasAccessToken());
+ drive_service->HasAccessToken());
web_ui()->CallJavascriptFunction("updateAuthStatus", auth_status);
// Start updating the GCache contents section.
@@ -277,7 +276,7 @@ void DriveInternalsWebUIHandler::OnGetGCacheContents(
// Start updating the file system tree section, if we have access token.
gdata::GDataSystemService* system_service = GetSystemService();
- if (!system_service->docs_service()->HasAccessToken())
+ if (!system_service->drive_service()->HasAccessToken())
return;
// Start rendering the file system tree as text.
« no previous file with comments | « chrome/browser/chromeos/system/ash_system_tray_delegate.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698