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

Unified Diff: chrome/browser/resources/about_welcome_android/about_welcome_android.js

Issue 619263002: Remove chrome://welcome page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename the test again Created 6 years, 2 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/about_welcome_android/about_welcome_android.js
diff --git a/chrome/browser/resources/about_welcome_android/about_welcome_android.js b/chrome/browser/resources/about_welcome_android/about_welcome_android.js
deleted file mode 100644
index b5f65b4ed9eee7634076b26a9cf0bdfd74a105ee..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/about_welcome_android/about_welcome_android.js
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// File Description:
-// Contains all the necessary functions for rendering the Welcome page on
-// Android.
-
-cr.define('welcome', function() {
- 'use strict';
-
- function initialize() {
- // Disable context menus.
- document.body.oncontextmenu = function(e) {
- e.preventDefault();
- }
-
- $('settings').onclick = function() {
- chrome.send('showSyncSettings');
- };
-
- var tosLink = $('tos-link');
- if (tosLink) {
- tosLink.onclick = function() {
- chrome.send('showTermsOfService');
- };
- }
-
- // Set visibility of terms of service footer.
- $('tos-footer').hidden = !loadTimeData.getBoolean('tosVisible');
-
- // Set the initial visibility for the sync footer.
- chrome.send('updateSyncFooterVisibility');
- }
-
- /**
- * Sets the visibility of the sync footer.
- * @param {boolean} isVisible Whether the sync footer should be visible.
- */
- function setSyncFooterVisible(isVisible) {
- $('sync-footer').hidden = !isVisible;
- }
-
- // Return an object with all of the exports.
- return {
- initialize: initialize,
- setSyncFooterVisible: setSyncFooterVisible,
- };
-});
-
-document.addEventListener('DOMContentLoaded', welcome.initialize);

Powered by Google App Engine
This is Rietveld 408576698