Commit dd00f9f4 authored by dpapad's avatar dpapad Committed by Commit Bot

WebUI cleanup: Remove dead code connection_manager.js

This file is only referenced by a test HTML file, which in turn is not
referenced anywhere. Deleting both.

Bug: None
Change-Id: I2f872560da6aec7c7b98bdeb57501a9f2cd2a021
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1507236
Auto-Submit: Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: default avatarSteven Bennetts <stevenjb@chromium.org>
Commit-Queue: Steven Bennetts <stevenjb@chromium.org>
Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#638415}
parent f08b0052
// Copyright (c) 2010 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.
function chromeos() {}
chromeos.connectionManager = function() {};
chromeos.connectionManager.transaction_status_callback_ = null;
chromeos.connectionManager.parent_page_url_ = 'chrome://mobilesetup';
chromeos.connectionManager.setTransactionStatus = function(status, callback) {
chromeos.connectionManager.transaction_status_callback_ = callback;
chromeos.connectionManager.reportTransactionStatus_(status);
};
chromeos.connectionManager.reportTransactionStatus_ = function(status) {
const msg = {
'type': 'reportTransactionStatusMsg',
'domain': location.href,
'status': status
};
window.parent.postMessage(msg, chromeos.connectionManager.parent_page_url_);
};
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Mobile activation testing page</title>
<style>
body {
background: -webkit-gradient(linear, left top, left bottom,
from(#EBEBEB), to(#CFCFCF));
font-family: 'Lucida Grande', Helvetica, sans-serif;
font-size: 10px;
height: 300px;
overflow: hidden;
}
</style>
<script src="connection_manager.js"></script>
<script>
function $(id) {
return document.getElementById(id);
}
chromeos.connectionManager.getDeviceInfo(function(device) {
$('device-info').innerHTML =
'carrier = ' + device.carrier + '<br>' +
'MEID = ' + device.MEID + '<br>' +
'IMEI = ' + device.IMEI + '<br>' +
'IMSI = ' + device.IMSI + '<br>' +
'ESN = ' + device.ESN + '<br>' +
'MDN = ' + device.MDN;
});
function sendStatus(status) {
chromeos.connectionManager.setTransactionStatus(status,
function() {});
}
</script>
</head>
<body>
<h2>Plan Payment Page<h2>
<div>Press a button below to signal transaction status back to the browser</div>
<div id='buttons'>
<button id='ok-btn' onclick="sendStatus('OK')">OK</button>
<button id='fail-btn' onclick="sendStatus('FAILED')">Failed</button>
</div>
<div>
Device Information:
<div id="device-info"></div>
</div>
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment