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

Side by Side Diff: chrome/browser/ui/extensions/extension_install_ui_default.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/extensions/extension_install_ui_default.h" 5 #include "chrome/browser/ui/extensions/extension_install_ui_default.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/chrome_notification_types.h" 9 #include "chrome/browser/chrome_notification_types.h"
10 #include "chrome/browser/extensions/extension_install_prompt.h" 10 #include "chrome/browser/extensions/extension_install_prompt.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // Creates an error infobar and delegate and adds the infobar to 81 // Creates an error infobar and delegate and adds the infobar to
82 // |infobar_service|. 82 // |infobar_service|.
83 static void Create(InfoBarService* infobar_service, 83 static void Create(InfoBarService* infobar_service,
84 const extensions::CrxInstallerError& error); 84 const extensions::CrxInstallerError& error);
85 85
86 private: 86 private:
87 explicit ErrorInfoBarDelegate(const extensions::CrxInstallerError& error); 87 explicit ErrorInfoBarDelegate(const extensions::CrxInstallerError& error);
88 virtual ~ErrorInfoBarDelegate(); 88 virtual ~ErrorInfoBarDelegate();
89 89
90 // ConfirmInfoBarDelegate: 90 // ConfirmInfoBarDelegate:
91 virtual base::string16 GetMessageText() const OVERRIDE; 91 virtual base::string16 GetMessageText() const override;
92 virtual int GetButtons() const OVERRIDE; 92 virtual int GetButtons() const override;
93 virtual base::string16 GetLinkText() const OVERRIDE; 93 virtual base::string16 GetLinkText() const override;
94 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE; 94 virtual bool LinkClicked(WindowOpenDisposition disposition) override;
95 95
96 extensions::CrxInstallerError error_; 96 extensions::CrxInstallerError error_;
97 97
98 DISALLOW_COPY_AND_ASSIGN(ErrorInfoBarDelegate); 98 DISALLOW_COPY_AND_ASSIGN(ErrorInfoBarDelegate);
99 }; 99 };
100 100
101 // static 101 // static
102 void ErrorInfoBarDelegate::Create(InfoBarService* infobar_service, 102 void ErrorInfoBarDelegate::Create(InfoBarService* infobar_service,
103 const extensions::CrxInstallerError& error) { 103 const extensions::CrxInstallerError& error) {
104 infobar_service->AddInfoBar(ConfirmInfoBarDelegate::CreateInfoBar( 104 infobar_service->AddInfoBar(ConfirmInfoBarDelegate::CreateInfoBar(
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 browser->tab_strip_model()->GetActiveWebContents(); 284 browser->tab_strip_model()->GetActiveWebContents();
285 if (!web_contents) 285 if (!web_contents)
286 return; 286 return;
287 ErrorInfoBarDelegate::Create(InfoBarService::FromWebContents(web_contents), 287 ErrorInfoBarDelegate::Create(InfoBarService::FromWebContents(web_contents),
288 error); 288 error);
289 } 289 }
290 290
291 void ExtensionInstallUIDefault::SetUseAppInstalledBubble(bool use_bubble) { 291 void ExtensionInstallUIDefault::SetUseAppInstalledBubble(bool use_bubble) {
292 use_app_installed_bubble_ = use_bubble; 292 use_app_installed_bubble_ = use_bubble;
293 } 293 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/extensions/extension_install_ui_default.h ('k') | chrome/browser/ui/extensions/extension_installed_bubble.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698