Bug 1207490 - Part 12: Remove use of expression closure from browser/modules/Social.jsm. r=Gijs
authorTooru Fujisawa <arai_a@mac.com>
Wed, 23 Sep 2015 17:57:53 +0900
changeset 265254 c63ef61734b0d7c875a0236bfe342b70f1a8140b
parent 265253 8593648ed49e2143ee71af5dd08f425477b761a3
child 265255 a4cee17afa634396cb5c6e9b2a50a20cc014f686
push id65891
push userarai_a@mac.com
push dateWed, 30 Sep 2015 16:36:04 +0000
treeherdermozilla-inbound@10194aec7255 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1207490
milestone44.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 1207490 - Part 12: Remove use of expression closure from browser/modules/Social.jsm. r=Gijs
browser/modules/Social.jsm
--- a/browser/modules/Social.jsm
+++ b/browser/modules/Social.jsm
@@ -208,17 +208,17 @@ this.Social = {
       let place = {
         uri: aURI,
         visits: [{
           visitDate: Date.now() + 1000,
           transitionType: Ci.nsINavHistoryService.TRANSITION_LINK
         }]
       };
       PlacesUtils.asyncHistory.updatePlaces(place, {
-        handleError: function () Cu.reportError("couldn't update history for socialmark annotation"),
+        handleError: () => Cu.reportError("couldn't update history for socialmark annotation"),
         handleResult: function () {},
         handleCompletion: function () {
           promiseSetAnnotation(aURI, providerList).then(function() {
             if (aCallback)
               schedule(function() { aCallback(true); } );
           }).then(null, Cu.reportError);
         }
       });