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/sync/sync_ui_util.h" | 5 #include "chrome/browser/sync/sync_ui_util.h" |
6 | 6 |
7 #include "base/i18n/number_formatting.h" | 7 #include "base/i18n/number_formatting.h" |
8 #include "base/i18n/time_formatting.h" | 8 #include "base/i18n/time_formatting.h" |
9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "chrome/common/chrome_switches.h" | 22 #include "chrome/common/chrome_switches.h" |
23 #include "chrome/common/pref_names.h" | 23 #include "chrome/common/pref_names.h" |
24 #include "chrome/common/url_constants.h" | 24 #include "chrome/common/url_constants.h" |
25 #include "chrome/grit/chromium_strings.h" | 25 #include "chrome/grit/chromium_strings.h" |
26 #include "chrome/grit/generated_resources.h" | 26 #include "chrome/grit/generated_resources.h" |
27 #include "chrome/grit/locale_settings.h" | 27 #include "chrome/grit/locale_settings.h" |
28 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 28 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
29 #include "components/signin/core/browser/signin_error_controller.h" | 29 #include "components/signin/core/browser/signin_error_controller.h" |
30 #include "components/signin/core/browser/signin_manager_base.h" | 30 #include "components/signin/core/browser/signin_manager_base.h" |
31 #include "google_apis/gaia/google_service_auth_error.h" | 31 #include "google_apis/gaia/google_service_auth_error.h" |
32 #include "grit/browser_resources.h" | |
33 #include "sync/internal_api/public/base/model_type.h" | 32 #include "sync/internal_api/public/base/model_type.h" |
34 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" | 33 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" |
35 #include "sync/protocol/proto_enum_conversions.h" | 34 #include "sync/protocol/proto_enum_conversions.h" |
36 #include "sync/protocol/sync_protocol_error.h" | 35 #include "sync/protocol/sync_protocol_error.h" |
37 #include "ui/base/l10n/l10n_util.h" | 36 #include "ui/base/l10n/l10n_util.h" |
38 | 37 |
39 #if defined(OS_CHROMEOS) | 38 #if defined(OS_CHROMEOS) |
40 #include "components/user_manager/user_manager.h" | 39 #include "components/user_manager/user_manager.h" |
41 #endif // defined(OS_CHROMEOS) | 40 #endif // defined(OS_CHROMEOS) |
42 | 41 |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 base::string16 ConstructTime(int64 time_in_int) { | 378 base::string16 ConstructTime(int64 time_in_int) { |
380 base::Time time = base::Time::FromInternalValue(time_in_int); | 379 base::Time time = base::Time::FromInternalValue(time_in_int); |
381 | 380 |
382 // If time is null the format function returns a time in 1969. | 381 // If time is null the format function returns a time in 1969. |
383 if (time.is_null()) | 382 if (time.is_null()) |
384 return base::string16(); | 383 return base::string16(); |
385 return base::TimeFormatFriendlyDateAndTime(time); | 384 return base::TimeFormatFriendlyDateAndTime(time); |
386 } | 385 } |
387 | 386 |
388 } // namespace sync_ui_util | 387 } // namespace sync_ui_util |
OLD | NEW |