apps/system/js/quick_settings.js
/**
     * Checks whether or not we should prompt the user when enabling
     * data roaming.
     * @memberof QuickSettings.prototype
     */
Checks whether or not we should prompt the user when enabling
data roaming.
Checks whether or not we should prompt the user when enabling data roaming .
function qs_getDataRoamingWarning() {
      var lock = SettingsListener.getSettingsLock();
      var reqSetting = lock.get(this.WARNING_DIALOG_ENABLED_KEY);
      var self = this;
      return new Promise(function(resolve, reject) {
        reqSetting.onerror = function() {
          resolve(true);
        };
        reqSetting.onsuccess = function() {
          resolve(reqSetting.result[self.WARNING_DIALOG_ENABLED_KEY]);
        };
      });
    }
function qs_getDataRoamingWarning ( ) { var lock = SettingsListener . getSettingsLock ( ) ; var reqSetting = lock . get ( this . WARNING_DIALOG_ENABLED_KEY ) ; var self = this ; return new Promise ( function ( resolve , reject ) { reqSetting . onerror = function ( ) { resolve ( true ) ; } ; reqSetting . onsuccess = function ( ) { resolve ( reqSetting . result [ self . WARNING_DIALOG_ENABLED_KEY ] ) ; } ; } ) ; }
Checks whether or not we should prompt the user when enabling
 data roaming.
Checks whether or not we should prompt the user when enabling data roaming .