Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / views / infobars / extension_infobar.cc
index d1758a1..92d665b 100644 (file)
@@ -52,11 +52,10 @@ class MenuImageSource: public gfx::CanvasImageSource {
         drop_image_(drop_image) {
   }
 
-  virtual ~MenuImageSource() {
-  }
+  ~MenuImageSource() override {}
 
   // Overridden from gfx::CanvasImageSource
-  virtual void Draw(gfx::Canvas* canvas) OVERRIDE {
+  void Draw(gfx::Canvas* canvas) override {
     int image_size = extension_misc::EXTENSION_ICON_BITTY;
     canvas->DrawImageInt(icon_, 0, 0, icon_.width(), icon_.height(), 0, 0,
                          image_size, image_size, false);
@@ -85,7 +84,7 @@ class MenuImageSource: public gfx::CanvasImageSource {
 ExtensionInfoBar::ExtensionInfoBar(
     scoped_ptr<ExtensionInfoBarDelegate> delegate,
     Browser* browser)
-    : InfoBarView(delegate.PassAs<infobars::InfoBarDelegate>()),
+    : InfoBarView(delegate.Pass()),
       browser_(browser),
       infobar_icon_(NULL),
       icon_as_menu_(NULL),