| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #ifndef IOS_CHROME_BROWSER_UI_SYNC_SYNC_UTIL_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_SYNC_SYNC_UTIL_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_SYNC_SYNC_UTIL_H_ | 6 #define IOS_CHROME_BROWSER_UI_SYNC_SYNC_UTIL_H_ |
| 7 | 7 |
| 8 #include <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 #include "google_apis/gaia/google_service_auth_error.h" | 10 #include "google_apis/gaia/google_service_auth_error.h" |
| 11 #include "ios/chrome/browser/sync/sync_setup_service.h" | 11 #include "ios/chrome/browser/sync/sync_setup_service.h" |
| 12 | 12 |
| 13 @class GenericChromeCommand; | 13 @class GenericChromeCommand; |
| 14 @class Tab; | 14 @class Tab; |
| 15 | 15 |
| 16 namespace ios { | 16 namespace ios { |
| 17 class ChromeBrowserState; | 17 class ChromeBrowserState; |
| 18 } | 18 } |
| (...skipping 25 matching lines...) Expand all Loading... |
| 44 // Returns true if an infobar was brought up. | 44 // Returns true if an infobar was brought up. |
| 45 bool displaySyncErrors(ios::ChromeBrowserState* browser_state, Tab* tab); | 45 bool displaySyncErrors(ios::ChromeBrowserState* browser_state, Tab* tab); |
| 46 | 46 |
| 47 // Returns true if |errorState| corresponds to a transient sync error. | 47 // Returns true if |errorState| corresponds to a transient sync error. |
| 48 bool IsTransientSyncError(SyncSetupService::SyncServiceState errorState); | 48 bool IsTransientSyncError(SyncSetupService::SyncServiceState errorState); |
| 49 | 49 |
| 50 } // namespace sync | 50 } // namespace sync |
| 51 } // namespace ios_internal | 51 } // namespace ios_internal |
| 52 | 52 |
| 53 #endif // IOS_CHROME_BROWSER_UI_SYNC_SYNC_UTIL_H_ | 53 #endif // IOS_CHROME_BROWSER_UI_SYNC_SYNC_UTIL_H_ |
| OLD | NEW |