OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #if defined(BROWSER_SYNC) | |
6 | |
7 #include "chrome/browser/sync/sync_status_ui_helper.h" | 5 #include "chrome/browser/sync/sync_status_ui_helper.h" |
8 | 6 |
9 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
10 #include "base/string_util.h" | 8 #include "base/string_util.h" |
11 #include "chrome/browser/sync/auth_error_state.h" | 9 #include "chrome/browser/sync/auth_error_state.h" |
12 #include "chrome/browser/sync/profile_sync_service.h" | 10 #include "chrome/browser/sync/profile_sync_service.h" |
13 #include "grit/chromium_strings.h" | 11 #include "grit/chromium_strings.h" |
14 #include "grit/generated_resources.h" | 12 #include "grit/generated_resources.h" |
15 | 13 |
16 // Given an authentication state, this helper function returns the appropriate | 14 // Given an authentication state, this helper function returns the appropriate |
(...skipping 92 matching lines...) Loading... |
109 } | 107 } |
110 } else if (service->unrecoverable_error_detected()) { | 108 } else if (service->unrecoverable_error_detected()) { |
111 result_type = SYNC_ERROR; | 109 result_type = SYNC_ERROR; |
112 status_label->assign(l10n_util::GetStringUTF16(IDS_SYNC_SETUP_ERROR)); | 110 status_label->assign(l10n_util::GetStringUTF16(IDS_SYNC_SETUP_ERROR)); |
113 } else { | 111 } else { |
114 status_label->assign(l10n_util::GetStringUTF16(IDS_SYNC_NOT_SET_UP_INFO)); | 112 status_label->assign(l10n_util::GetStringUTF16(IDS_SYNC_NOT_SET_UP_INFO)); |
115 } | 113 } |
116 } | 114 } |
117 return result_type; | 115 return result_type; |
118 } | 116 } |
119 | |
120 #endif // defined(BROWSER_SYNC) | |
OLD | NEW |