OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/resource_bundle.h" | |
9 #include "base/i18n/number_formatting.h" | 8 #include "base/i18n/number_formatting.h" |
10 #include "base/i18n/time_formatting.h" | 9 #include "base/i18n/time_formatting.h" |
11 #include "base/string_util.h" | 10 #include "base/string_util.h" |
12 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
13 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/sync/profile_sync_service.h" | 13 #include "chrome/browser/sync/profile_sync_service.h" |
15 #include "chrome/browser/ui/options/options_window.h" | 14 #include "chrome/browser/ui/options/options_window.h" |
16 #include "chrome/common/net/gaia/google_service_auth_error.h" | 15 #include "chrome/common/net/gaia/google_service_auth_error.h" |
17 #include "grit/browser_resources.h" | 16 #include "grit/browser_resources.h" |
18 #include "grit/chromium_strings.h" | 17 #include "grit/chromium_strings.h" |
19 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" |
| 19 #include "ui/base/resource/resource_bundle.h" |
20 | 20 |
21 typedef GoogleServiceAuthError AuthError; | 21 typedef GoogleServiceAuthError AuthError; |
22 | 22 |
23 namespace sync_ui_util { | 23 namespace sync_ui_util { |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 // Given an authentication state, this helper function returns the appropriate | 27 // Given an authentication state, this helper function returns the appropriate |
28 // status message and, if necessary, the text that should appear in the | 28 // status message and, if necessary, the text that should appear in the |
29 // re-login link. | 29 // re-login link. |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 | 396 |
397 DictionaryValue* val = new DictionaryValue; | 397 DictionaryValue* val = new DictionaryValue; |
398 val->SetString("stat_name", "Autofill Migration Time"); | 398 val->SetString("stat_name", "Autofill Migration Time"); |
399 val->SetString("stat_value", ConstructTime(info.autofill_migration_time)); | 399 val->SetString("stat_value", ConstructTime(info.autofill_migration_time)); |
400 details->Append(val); | 400 details->Append(val); |
401 } | 401 } |
402 } | 402 } |
403 } | 403 } |
404 | 404 |
405 } // namespace sync_ui_util | 405 } // namespace sync_ui_util |
OLD | NEW |