Bug 1135541: Annotate new method "IsStillValid" in EME code as 'override'. rs=ehsan
authorDaniel Holbert <dholbert@cs.stanford.edu>
Fri, 27 Mar 2015 14:04:16 -0700
changeset 265147 a74c470d1a6a9d39d1281a611d2b5ec993dadfc7
parent 265146 2e1818e7d8b0cf1cf3d030a28cae64acad2417f0
child 265148 9d61eea7164dc724d5e340daf781376c3b7e41d5
push id4718
push userraliiev@mozilla.com
push dateMon, 11 May 2015 18:39:53 +0000
treeherdermozilla-beta@c20c4ef55f08 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan
bugs1135541
milestone39.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1135541: Annotate new method "IsStillValid" in EME code as 'override'. rs=ehsan
dom/media/eme/MediaKeys.cpp
--- a/dom/media/eme/MediaKeys.cpp
+++ b/dom/media/eme/MediaKeys.cpp
@@ -404,17 +404,17 @@ public:
     nsRefPtr<PluginCrashedEvent> event =
       PluginCrashedEvent::Constructor(document, NS_LITERAL_STRING("PluginCrashed"), init);
     event->SetTrusted(true);
     event->GetInternalNSEvent()->mFlags.mOnlyChromeDispatch = true;
 
     EventDispatcher::DispatchDOMEvent(parentWindow, nullptr, event, nullptr, nullptr);
   }
 
-  virtual bool IsStillValid()
+  virtual bool IsStillValid() override
   {
     nsCOMPtr<nsPIDOMWindow> parentWindow;
     nsCOMPtr<nsIDocument> document;
     return GetParentWindowAndDocumentIfValid(parentWindow, document);
   }
 
 private:
   virtual ~CrashHandler()