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/prefs/pref_service.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.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 base::Time; | 21 using base::Time; |
22 using namespace signin_internals_util; | 22 using namespace signin_internals_util; |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 } | 236 } |
237 | 237 |
238 Time AboutSigninInternals::GetTokenTime( | 238 Time AboutSigninInternals::GetTokenTime( |
239 const std::string& token_name) const { | 239 const std::string& token_name) const { |
240 TokenInfoMap::const_iterator iter = | 240 TokenInfoMap::const_iterator iter = |
241 signin_status_.token_info_map.find(token_name); | 241 signin_status_.token_info_map.find(token_name); |
242 if (iter == signin_status_.token_info_map.end()) | 242 if (iter == signin_status_.token_info_map.end()) |
243 return base::Time(); | 243 return base::Time(); |
244 return base::Time::FromInternalValue(iter->second.time_internal); | 244 return base::Time::FromInternalValue(iter->second.time_internal); |
245 } | 245 } |
OLD | NEW |