| 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/signin/about_signin_internals.h" | 5 #include "chrome/browser/signin/about_signin_internals.h" |
| 6 | 6 |
| 7 #include "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
| 8 #include "base/hash.h" | 8 #include "base/hash.h" |
| 9 #include "base/i18n/time_formatting.h" | 9 #include "base/i18n/time_formatting.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/prefs/pref_service.h" |
| 11 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
| 12 #include "chrome/browser/prefs/pref_service.h" | |
| 13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 14 #include "chrome/browser/signin/signin_internals_util.h" | 14 #include "chrome/browser/signin/signin_internals_util.h" |
| 15 #include "chrome/browser/signin/signin_manager.h" | 15 #include "chrome/browser/signin/signin_manager.h" |
| 16 #include "chrome/browser/signin/token_service.h" | 16 #include "chrome/browser/signin/token_service.h" |
| 17 #include "chrome/browser/signin/token_service_factory.h" | 17 #include "chrome/browser/signin/token_service_factory.h" |
| 18 #include "chrome/browser/ui/webui/signin_internals_ui.h" | 18 #include "chrome/browser/ui/webui/signin_internals_ui.h" |
| 19 #include "google_apis/gaia/gaia_constants.h" | 19 #include "google_apis/gaia/gaia_constants.h" |
| 20 | 20 |
| 21 using namespace signin_internals_util; | 21 using namespace signin_internals_util; |
| 22 | 22 |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 | 212 |
| 213 void AboutSigninInternals::NotifyObservers() { | 213 void AboutSigninInternals::NotifyObservers() { |
| 214 FOR_EACH_OBSERVER(AboutSigninInternals::Observer, | 214 FOR_EACH_OBSERVER(AboutSigninInternals::Observer, |
| 215 signin_observers_, | 215 signin_observers_, |
| 216 OnSigninStateChanged(signin_status_.ToValue())); | 216 OnSigninStateChanged(signin_status_.ToValue())); |
| 217 } | 217 } |
| 218 | 218 |
| 219 scoped_ptr<DictionaryValue> AboutSigninInternals::GetSigninStatus() { | 219 scoped_ptr<DictionaryValue> AboutSigninInternals::GetSigninStatus() { |
| 220 return signin_status_.ToValue().Pass(); | 220 return signin_status_.ToValue().Pass(); |
| 221 } | 221 } |
| OLD | NEW |