Check-in [5af7507345]
Overview
Comment:ChromeOS: Check to ensure we are running under ChromeOS before initializing, print an error to our console if not
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 5af750734570853dd88bb9571f5775c3555110a9
User & Date: rkeene on 2016-02-11 16:07:07
Other Links: manifest | tags
Context
2016-02-11
18:31
Started working on fixing an issue where if no hardware slots are present the internal slots would not show up check-in: c18406ef3e user: rkeene tags: trunk
16:07
ChromeOS: Check to ensure we are running under ChromeOS before initializing, print an error to our console if not check-in: 5af7507345 user: rkeene tags: trunk
16:04
ChromeOS: Hard-coded ID of smartcard manager app check-in: 2c83f782c6 user: rkeene tags: trunk
Changes

Modified build/chrome/cackey.js from [1a209c8c6b] to [94b1497683].

308
309
310
311
312
313
314







315
316
317
318
319
320
321
	/* Register listeners with Chrome */
	chrome.certificateProvider.onCertificatesRequested.addListener(cackeyListCertificates);
	chrome.certificateProvider.onSignDigestRequested.addListener(cackeySignMessage);
}

function cackeyInit() {
	var elementEmbed;








	if (cackeyHandle != null) {
		return;
	}

	elementEmbed = document.createElement('embed');
	elementEmbed.type = "application/x-pnacl";







>
>
>
>
>
>
>







308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
	/* Register listeners with Chrome */
	chrome.certificateProvider.onCertificatesRequested.addListener(cackeyListCertificates);
	chrome.certificateProvider.onSignDigestRequested.addListener(cackeySignMessage);
}

function cackeyInit() {
	var elementEmbed;

	/* Verify that we can register callbacks */
	if (!chrome.certificateProvider) {
		console.error("This extension only works on ChromeOS!");

		return;
	}

	if (cackeyHandle != null) {
		return;
	}

	elementEmbed = document.createElement('embed');
	elementEmbed.type = "application/x-pnacl";