| OLD | NEW |
| 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 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/message_loop_proxy.h" | 11 #include "base/message_loop_proxy.h" |
| 12 #include "chrome/browser/chromeos/gdata/operations_base.h" | 12 #include "chrome/browser/google_apis/operations_base.h" |
| 13 #include "chrome/browser/chromeos/gdata/task_util.h" | 13 #include "chrome/browser/google_apis/task_util.h" |
| 14 #include "chrome/browser/signin/token_service.h" | 14 #include "chrome/browser/signin/token_service.h" |
| 15 #include "chrome/browser/signin/token_service_factory.h" | 15 #include "chrome/browser/signin/token_service_factory.h" |
| 16 #include "chrome/common/chrome_notification_types.h" | 16 #include "chrome/common/chrome_notification_types.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 #include "google_apis/gaia/gaia_constants.h" | 21 #include "google_apis/gaia/gaia_constants.h" |
| 22 | 22 |
| 23 using content::BrowserThread; | 23 using content::BrowserThread; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 if (type == chrome::NOTIFICATION_TOKEN_AVAILABLE) { | 119 if (type == chrome::NOTIFICATION_TOKEN_AVAILABLE) { |
| 120 TokenService* service = TokenServiceFactory::GetForProfile(profile_); | 120 TokenService* service = TokenServiceFactory::GetForProfile(profile_); |
| 121 refresh_token_ = service->GetOAuth2LoginRefreshToken(); | 121 refresh_token_ = service->GetOAuth2LoginRefreshToken(); |
| 122 } else { | 122 } else { |
| 123 refresh_token_.clear(); | 123 refresh_token_.clear(); |
| 124 } | 124 } |
| 125 FOR_EACH_OBSERVER(Observer, observers_, OnOAuth2RefreshTokenChanged()); | 125 FOR_EACH_OBSERVER(Observer, observers_, OnOAuth2RefreshTokenChanged()); |
| 126 } | 126 } |
| 127 | 127 |
| 128 } // namespace gdata | 128 } // namespace gdata |
| OLD | NEW |