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

Unified Diff: chrome/browser/chromeos/gdata/auth_service.cc

Issue 10837338: Remove "GData" prefix from non-GData specific classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: chrome/browser/chromeos/gdata/auth_service.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_auth_service.cc b/chrome/browser/chromeos/gdata/auth_service.cc
similarity index 85%
rename from chrome/browser/chromeos/gdata/gdata_auth_service.cc
rename to chrome/browser/chromeos/gdata/auth_service.cc
index 0d71bac73e43d2a93e291d5f8125259a5ff37d74..f98d26db5c7e6f31fb4938d93bf328956ed0edee 100644
--- a/chrome/browser/chromeos/gdata/gdata_auth_service.cc
+++ b/chrome/browser/chromeos/gdata/auth_service.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/chromeos/gdata/gdata_auth_service.h"
+#include "chrome/browser/chromeos/gdata/auth_service.h"
#include <string>
@@ -23,7 +23,7 @@ using content::BrowserThread;
namespace gdata {
-void GDataAuthService::Initialize(Profile* profile) {
+void AuthService::Initialize(Profile* profile) {
profile_ = profile;
// Get OAuth2 refresh token (if we have any) and register for its updates.
TokenService* service = TokenServiceFactory::GetForProfile(profile_);
@@ -39,17 +39,17 @@ void GDataAuthService::Initialize(Profile* profile) {
FOR_EACH_OBSERVER(Observer, observers_, OnOAuth2RefreshTokenChanged());
}
-GDataAuthService::GDataAuthService()
+AuthService::AuthService()
: profile_(NULL),
weak_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
}
-GDataAuthService::~GDataAuthService() {
+AuthService::~AuthService() {
}
-void GDataAuthService::StartAuthentication(
- GDataOperationRegistry* registry,
+void AuthService::StartAuthentication(
+ OperationRegistry* registry,
const AuthStatusCallback& callback) {
scoped_refptr<base::MessageLoopProxy> relay_proxy(
base::MessageLoopProxy::current());
@@ -61,11 +61,11 @@ void GDataAuthService::StartAuthentication(
BrowserThread::PostTask(
BrowserThread::UI,
FROM_HERE,
- base::Bind(&GDataAuthService::StartAuthenticationOnUIThread,
+ base::Bind(&AuthService::StartAuthenticationOnUIThread,
weak_ptr_factory_.GetWeakPtr(),
registry,
relay_proxy,
- base::Bind(&GDataAuthService::OnAuthCompleted,
+ base::Bind(&AuthService::OnAuthCompleted,
weak_ptr_factory_.GetWeakPtr(),
relay_proxy,
callback)));
@@ -75,8 +75,8 @@ void GDataAuthService::StartAuthentication(
}
}
-void GDataAuthService::StartAuthenticationOnUIThread(
- GDataOperationRegistry* registry,
+void AuthService::StartAuthenticationOnUIThread(
+ OperationRegistry* registry,
scoped_refptr<base::MessageLoopProxy> relay_proxy,
const AuthStatusCallback& callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
@@ -84,7 +84,7 @@ void GDataAuthService::StartAuthenticationOnUIThread(
(new AuthOperation(registry, callback, refresh_token_))->Start();
}
-void GDataAuthService::OnAuthCompleted(
+void AuthService::OnAuthCompleted(
scoped_refptr<base::MessageLoopProxy> relay_proxy,
const AuthStatusCallback& callback,
GDataErrorCode error,
@@ -99,15 +99,15 @@ void GDataAuthService::OnAuthCompleted(
relay_proxy->PostTask(FROM_HERE, base::Bind(callback, error, access_token));
}
-void GDataAuthService::AddObserver(Observer* observer) {
+void AuthService::AddObserver(Observer* observer) {
observers_.AddObserver(observer);
}
-void GDataAuthService::RemoveObserver(Observer* observer) {
+void AuthService::RemoveObserver(Observer* observer) {
observers_.RemoveObserver(observer);
}
-void GDataAuthService::Observe(int type,
+void AuthService::Observe(int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) {
satorux1 2012/08/20 17:00:48 indentation.
kochi 2012/08/21 05:09:23 Done.
DCHECK(type == chrome::NOTIFICATION_TOKEN_AVAILABLE ||

Powered by Google App Engine
This is Rietveld 408576698