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

Side by Side Diff: chrome/browser/chromeos/gdata/auth_service.cc

Issue 10879061: Rename GDataOperationInterface to AuthenticatedOperationInterface (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/operation_runner.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/gdata/auth_service.h" 5 #include "chrome/browser/chromeos/gdata/auth_service.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
11 #include "chrome/browser/chromeos/gdata/gdata_operations.h" 11 #include "chrome/browser/chromeos/gdata/operations_base.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/signin/token_service.h" 13 #include "chrome/browser/signin/token_service.h"
14 #include "chrome/browser/signin/token_service_factory.h" 14 #include "chrome/browser/signin/token_service_factory.h"
15 #include "chrome/common/chrome_notification_types.h" 15 #include "chrome/common/chrome_notification_types.h"
16 #include "chrome/common/net/gaia/gaia_constants.h" 16 #include "chrome/common/net/gaia/gaia_constants.h"
17 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.h"
18 #include "content/public/browser/notification_details.h" 18 #include "content/public/browser/notification_details.h"
19 #include "content/public/browser/notification_source.h" 19 #include "content/public/browser/notification_source.h"
20 #include "content/public/browser/notification_types.h" 20 #include "content/public/browser/notification_types.h"
21 21
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 if (type == chrome::NOTIFICATION_TOKEN_AVAILABLE) { 122 if (type == chrome::NOTIFICATION_TOKEN_AVAILABLE) {
123 TokenService* service = TokenServiceFactory::GetForProfile(profile_); 123 TokenService* service = TokenServiceFactory::GetForProfile(profile_);
124 refresh_token_ = service->GetOAuth2LoginRefreshToken(); 124 refresh_token_ = service->GetOAuth2LoginRefreshToken();
125 } else { 125 } else {
126 refresh_token_.clear(); 126 refresh_token_.clear();
127 } 127 }
128 FOR_EACH_OBSERVER(Observer, observers_, OnOAuth2RefreshTokenChanged()); 128 FOR_EACH_OBSERVER(Observer, observers_, OnOAuth2RefreshTokenChanged());
129 } 129 }
130 130
131 } // namespace gdata 131 } // namespace gdata
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/operation_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698