Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(408)

Side by Side Diff: ios/chrome/browser/ui/sync/sync_error_infobar_delegate.h

Issue 2657673004: Add shutdown notification and service refs to SyncServiceObserver. (Closed)
Patch Set: Chromeos fix Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_ERROR_INFOBAR_DELEGATE_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_SYNC_SYNC_ERROR_INFOBAR_DELEGATE_H_
6 #define IOS_CHROME_BROWSER_UI_SYNC_SYNC_ERROR_INFOBAR_DELEGATE_H_ 6 #define IOS_CHROME_BROWSER_UI_SYNC_SYNC_ERROR_INFOBAR_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 InfoBarIdentifier GetIdentifier() const override; 44 InfoBarIdentifier GetIdentifier() const override;
45 45
46 // ConfirmInfoBarDelegate implementation. 46 // ConfirmInfoBarDelegate implementation.
47 base::string16 GetMessageText() const override; 47 base::string16 GetMessageText() const override;
48 int GetButtons() const override; 48 int GetButtons() const override;
49 base::string16 GetButtonLabel(InfoBarButton button) const override; 49 base::string16 GetButtonLabel(InfoBarButton button) const override;
50 gfx::Image GetIcon() const override; 50 gfx::Image GetIcon() const override;
51 bool Accept() override; 51 bool Accept() override;
52 52
53 // ProfileSyncServiceObserver implementation. 53 // ProfileSyncServiceObserver implementation.
54 void OnStateChanged() override; 54 void OnStateChanged(syncer::SyncService* sync) override;
55 55
56 private: 56 private:
57 gfx::Image icon_; 57 gfx::Image icon_;
58 ios::ChromeBrowserState* browser_state_; 58 ios::ChromeBrowserState* browser_state_;
59 SyncSetupService::SyncServiceState error_state_; 59 SyncSetupService::SyncServiceState error_state_;
60 base::string16 message_; 60 base::string16 message_;
61 base::string16 button_text_; 61 base::string16 button_text_;
62 base::scoped_nsobject<GenericChromeCommand> command_; 62 base::scoped_nsobject<GenericChromeCommand> command_;
63 63
64 DISALLOW_COPY_AND_ASSIGN(SyncErrorInfoBarDelegate); 64 DISALLOW_COPY_AND_ASSIGN(SyncErrorInfoBarDelegate);
65 }; 65 };
66 66
67 #endif // IOS_CHROME_BROWSER_UI_SYNC_SYNC_ERROR_INFOBAR_DELEGATE_H_ 67 #endif // IOS_CHROME_BROWSER_UI_SYNC_SYNC_ERROR_INFOBAR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698