addInputMethod(inputMethodId) {
      assert(cr.isChromeOS);
      const inputMethod = this.componentExtensionImes.find(function(ime) {
        return ime.id == inputMethodId;
      });
      assertTrue(!!inputMethod);
      inputMethod.enabled = true;
      const prefPath = 'prefs.settings.language.preload_engines.value';
      const enabledInputMethods = this.settingsPrefs_.get(prefPath).split(',');
      enabledInputMethods.push(inputMethodId);
      this.settingsPrefs_.set(prefPath, enabledInputMethods.join(','));
    }
/**
     * Adds the input method to the current user's list of enabled input
     * methods, enabling the input method for the current user. Chrome OS only.
     * @param {string} inputMethodId
     */
Adds the input method to the current user's list of enabled input
methods, enabling the input method for the current user. Chrome OS only.
Adds the input method to the current user ' s list of enabled input methods enabling the input method for the current user . Chrome OS only .
addInputMethod(inputMethodId) {
      assert(cr.isChromeOS);
      const inputMethod = this.componentExtensionImes.find(function(ime) {
        return ime.id == inputMethodId;
      });
      assertTrue(!!inputMethod);
      inputMethod.enabled = true;
      const prefPath = 'prefs.settings.language.preload_engines.value';
      const enabledInputMethods = this.settingsPrefs_.get(prefPath).split(',');
      enabledInputMethods.push(inputMethodId);
      this.settingsPrefs_.set(prefPath, enabledInputMethods.join(','));
    }
addInputMethod ( inputMethodId ) { assert ( cr . isChromeOS ) ; const inputMethod = this . componentExtensionImes . find ( function ( ime ) { return ime . id == inputMethodId ; } ) ; assertTrue ( ! ! inputMethod ) ; inputMethod . enabled = true ; const prefPath = 'prefs.settings.language.preload_engines.value' ; const enabledInputMethods = this . settingsPrefs_ . get ( prefPath ) . split ( ',' ) ; enabledInputMethods . push ( inputMethodId ) ; this . settingsPrefs_ . set ( prefPath , enabledInputMethods . join ( ',' ) ) ; }
Adds the input method to the current user's list of enabled input
 methods, enabling the input method for the current user.
Adds the input method to the current user ' s list of enabled input methods enabling the input method for the current user .