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

Unified Diff: ios/web/webui/resources/console.js

Issue 2946383002: Support new-style Mojo JS core API on IOS. (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
« no previous file with comments | « ios/web/webui/mojo_js_constants.cc ('k') | ios/web/webui/resources/core.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/webui/resources/console.js
diff --git a/ios/web/webui/resources/console.js b/ios/web/webui/resources/console.js
deleted file mode 100644
index 59e246d7be351becf5ba38d5984f32446731ed9b..0000000000000000000000000000000000000000
--- a/ios/web/webui/resources/console.js
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright 2016 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.
-
-// Module "console"
-//
-// This module provides basic logging support. The reason to define this module
-// to forward calls to the |console| object exposed by the browser, instead of
-// using that object directly: mojo JS bindings are currently loaded using gin
-// and the |console| object is not always available.
-//
-// TODO(crbug.com/703380): When the Mojo JS bindings move away from gin,
-// this module could be removed.
-
-define("console", [], function() {
- /**
- * Logs a message to the console.
- * @param {string} message to log.
- */
- function log(message) {
- console.log(message);
- }
-
- var exports = {};
- exports.log = log;
- return exports;
-});
« no previous file with comments | « ios/web/webui/mojo_js_constants.cc ('k') | ios/web/webui/resources/core.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698