Bug 1113658 - Disable parental control logging on Android. r=mfinkle, a=sledru
authorwesj <wjohnston@mozilla.com>
Thu, 29 Jan 2015 10:40:59 -0800
changeset 243623 ea6cff5fd829
parent 243622 734264bcd6d1
child 243624 f402bfa9a35e
push id4419
push userryanvm@gmail.com
push date2015-02-02 15:44 +0000
treeherdermozilla-beta@ea6cff5fd829 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle, sledru
bugs1113658
milestone36.0
Bug 1113658 - Disable parental control logging on Android. r=mfinkle, a=sledru
toolkit/components/parentalcontrols/nsParentalControlsServiceAndroid.cpp
--- a/toolkit/components/parentalcontrols/nsParentalControlsServiceAndroid.cpp
+++ b/toolkit/components/parentalcontrols/nsParentalControlsServiceAndroid.cpp
@@ -38,17 +38,19 @@ nsParentalControlsService::GetBlockFileD
   *aResult = !res;
 
   return NS_OK;
 }
 
 NS_IMETHODIMP
 nsParentalControlsService::GetLoggingEnabled(bool *aResult)
 {
-  return NS_ERROR_NOT_AVAILABLE;
+  // Android doesn't currently have any method of logging restricted actions.
+  *aResult = false;
+  return NS_OK;
 }
 
 NS_IMETHODIMP
 nsParentalControlsService::Log(int16_t aEntryType,
                                bool aBlocked,
                                nsIURI *aSource,
                                nsIFile *aTarget)
 {