Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4403)

Unified Diff: chrome/browser/resources/chromeos/login/oobe_screen_voice_interaction_value_prop.js

Issue 2944703004: Run clang-format on .js files in c/b/r/chromeos (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
+ }
+ };
+ });

Powered by Google App Engine
This is Rietveld 408576698