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

Unified Diff: chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm

Issue 12279015: Mac Chromium style checker cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm
diff --git a/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm b/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm
index aa06434327bd78366383625f5cd203c4f388a3cf..6ccb99cf44d24ceac83b44a9d4a5c48db02a23ff 100644
--- a/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm
+++ b/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm
@@ -188,9 +188,10 @@ class ExtensionServiceObserverBridge : public content::NotificationObserver,
}
// Overridden from content::NotificationObserver.
- void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) {
+ virtual void Observe(
+ int type,
+ const content::NotificationSource& source,
+ const content::NotificationDetails& details) OVERRIDE {
switch (type) {
case chrome::NOTIFICATION_EXTENSION_HOST_VIEW_SHOULD_CLOSE: {
ExtensionPopupController* popup = [ExtensionPopupController popup];
@@ -226,12 +227,14 @@ class ExtensionServiceObserverBridge : public content::NotificationObserver,
}
// ExtensionToolbarModel::Observer implementation.
- void BrowserActionAdded(const Extension* extension, int index) {
+ virtual void BrowserActionAdded(
+ const Extension* extension,
+ int index) OVERRIDE {
[owner_ createActionButtonForExtension:extension withIndex:index];
[owner_ resizeContainerAndAnimate:NO];
}
- void BrowserActionRemoved(const Extension* extension) {
+ virtual void BrowserActionRemoved(const Extension* extension) OVERRIDE {
[owner_ removeActionButtonForExtension:extension];
[owner_ resizeContainerAndAnimate:NO];
}

Powered by Google App Engine
This is Rietveld 408576698