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

Side by Side Diff: chrome/browser/ui/startup/autolaunch_prompt_win.cc

Issue 627043002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[a-s]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 (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/ui/startup/autolaunch_prompt.h" 5 #include "chrome/browser/ui/startup/autolaunch_prompt.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 29 matching lines...) Expand all
40 // |infobar_service|. 40 // |infobar_service|.
41 static void Create(InfoBarService* infobar_service, Profile* profile); 41 static void Create(InfoBarService* infobar_service, Profile* profile);
42 42
43 private: 43 private:
44 explicit AutolaunchInfoBarDelegate(Profile* profile); 44 explicit AutolaunchInfoBarDelegate(Profile* profile);
45 virtual ~AutolaunchInfoBarDelegate(); 45 virtual ~AutolaunchInfoBarDelegate();
46 46
47 void set_should_expire() { should_expire_ = true; } 47 void set_should_expire() { should_expire_ = true; }
48 48
49 // ConfirmInfoBarDelegate: 49 // ConfirmInfoBarDelegate:
50 virtual int GetIconID() const OVERRIDE; 50 virtual int GetIconID() const override;
51 virtual base::string16 GetMessageText() const OVERRIDE; 51 virtual base::string16 GetMessageText() const override;
52 virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; 52 virtual base::string16 GetButtonLabel(InfoBarButton button) const override;
53 virtual bool Accept() OVERRIDE; 53 virtual bool Accept() override;
54 virtual bool Cancel() OVERRIDE; 54 virtual bool Cancel() override;
55 virtual bool ShouldExpireInternal( 55 virtual bool ShouldExpireInternal(
56 const NavigationDetails& details) const OVERRIDE; 56 const NavigationDetails& details) const override;
57 57
58 // Weak pointer to the profile, not owned by us. 58 // Weak pointer to the profile, not owned by us.
59 Profile* profile_; 59 Profile* profile_;
60 60
61 // Whether the info-bar should be dismissed on the next navigation. 61 // Whether the info-bar should be dismissed on the next navigation.
62 bool should_expire_; 62 bool should_expire_;
63 63
64 // Used to delay the expiration of the info-bar. 64 // Used to delay the expiration of the info-bar.
65 base::WeakPtrFactory<AutolaunchInfoBarDelegate> weak_factory_; 65 base::WeakPtrFactory<AutolaunchInfoBarDelegate> weak_factory_;
66 66
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 return true; 166 return true;
167 } 167 }
168 168
169 void RegisterAutolaunchUserPrefs(user_prefs::PrefRegistrySyncable* registry) { 169 void RegisterAutolaunchUserPrefs(user_prefs::PrefRegistrySyncable* registry) {
170 registry->RegisterIntegerPref( 170 registry->RegisterIntegerPref(
171 prefs::kShownAutoLaunchInfobar, 0, 171 prefs::kShownAutoLaunchInfobar, 0,
172 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 172 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
173 } 173 }
174 174
175 } // namespace chrome 175 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/settings_window_manager_browsertest.cc ('k') | chrome/browser/ui/startup/default_browser_prompt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698