Index: chrome/browser/resources/chromeos/login/oobe_screen_voice_interaction_value_prop.js |
diff --git a/chrome/browser/resources/chromeos/login/oobe_screen_voice_interaction_value_prop.js b/chrome/browser/resources/chromeos/login/oobe_screen_voice_interaction_value_prop.js |
index 67e4b40a2be2ac6ee684fab907443a73b939a7bf..3fdcd5ededd4ad536e84f09f6bb0e037b5307c6f 100644 |
--- a/chrome/browser/resources/chromeos/login/oobe_screen_voice_interaction_value_prop.js |
+++ b/chrome/browser/resources/chromeos/login/oobe_screen_voice_interaction_value_prop.js |
@@ -6,42 +6,43 @@ |
* @fileoverview Oobe Voice Interaction Value Prop screen implementation. |
*/ |
-login.createScreen('VoiceInteractionValuePropScreen', |
- 'voice-interaction-value-prop', function() { |
- return { |
+login.createScreen( |
+ 'VoiceInteractionValuePropScreen', 'voice-interaction-value-prop', |
+ function() { |
+ return { |
- /** @Override */ |
- onBeforeShow: function(data) { |
- var valueView = $('voice-interaction-value-prop-md'). |
- getElement('value-prop-view'); |
+ /** @Override */ |
+ onBeforeShow: function(data) { |
+ var valueView = $('voice-interaction-value-prop-md') |
+ .getElement('value-prop-view'); |
- valueView.addContentScripts([ |
- { |
+ valueView.addContentScripts([{ |
name: 'stripLinks', |
matches: ['<all_urls>'], |
- js: { code: |
- "document.querySelectorAll('a').forEach(" + |
- "function(anchor){anchor.href='javascript:void(0)';})" |
+ js: { |
+ code: 'document.querySelectorAll(\'a\').forEach(' + |
+ 'function(anchor){anchor.href=\'javascript:void(0)\';})' |
}, |
run_at: 'document_end' |
}]); |
- // TODO(updowndota): provide static content later for the final fallback. |
- valueView.request.onHeadersReceived.addListener(function(details) { |
- if (details.statusCode == '404') { |
- if (valueView.src != |
- 'https://www.gstatic.com/opa-chromeos/oobe/en/value_proposition.html') { |
- valueView.src = |
- 'https://www.gstatic.com/opa-chromeos/oobe/en/value_proposition.html'; |
- } |
- } |
- }, {urls: ['<all_urls>'], types: ['main_frame']}); |
+ // TODO(updowndota): provide static content later for the final |
+ // fallback. |
+ valueView.request.onHeadersReceived.addListener(function(details) { |
+ if (details.statusCode == '404') { |
+ if (valueView.src != |
+ 'https://www.gstatic.com/opa-chromeos/oobe/en/value_proposition.html') { |
+ valueView.src = |
+ 'https://www.gstatic.com/opa-chromeos/oobe/en/value_proposition.html'; |
+ } |
+ } |
+ }, {urls: ['<all_urls>'], types: ['main_frame']}); |
- var locale = loadTimeData.getString('locale'); |
- valueView.src = 'https://www.gstatic.com/opa-chromeos/oobe/' + locale |
- + '/value_proposition.html'; |
+ var locale = loadTimeData.getString('locale'); |
+ valueView.src = 'https://www.gstatic.com/opa-chromeos/oobe/' + |
+ locale + '/value_proposition.html'; |
- Oobe.getInstance().headerHidden = true; |
- } |
- }; |
-}); |
+ Oobe.getInstance().headerHidden = true; |
+ } |
+ }; |
+ }); |