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

Unified Diff: ios/web/web_state/js/resources/core.js

Issue 2817943002: Fully deprecate core.js. Moved last method to error.js. (Closed)
Patch Set: Tweak language Created 3 years, 8 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/web_state/js/common_js_unittest.mm ('k') | ios/web/web_state/js/resources/dialog_overrides.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/js/resources/core.js
diff --git a/ios/web/web_state/js/resources/core.js b/ios/web/web_state/js/resources/core.js
deleted file mode 100644
index f5ba77f2bb7ca4b2713256cb4e9f87ca265f232b..0000000000000000000000000000000000000000
--- a/ios/web/web_state/js/resources/core.js
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 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.
-
-// This file adheres to closure-compiler conventions in order to enable
-// compilation with ADVANCED_OPTIMIZATIONS. In particular, members that are to
-// be accessed externally should be specified in this['style'] as opposed to
-// this.style because member identifiers are minified by default.
-// See http://goo.gl/FwOgy
-
-goog.provide('__crWeb.core');
-
-goog.require('__crWeb.common');
-goog.require('__crWeb.message');
-
-/* Beginning of anonymous object. */
-(function() {
- __gCrWeb['core'] = {};
-
- // JavaScript errors are logged on the main application side. The handler is
- // added ASAP to catch any errors in startup. Note this does not appear to
- // work in iOS < 5.
- window.addEventListener('error', function(event) {
- // Sadly, event.filename and event.lineno are always 'undefined' and '0'
- // with UIWebView.
- __gCrWeb.message.invokeOnHost(
- {'command': 'window.error', 'message': event.message.toString()});
- });
-
- // Flush the message queue.
- if (__gCrWeb.message) {
- __gCrWeb.message.invokeQueues();
- }
-
-}()); // End of anonymous object
« no previous file with comments | « ios/web/web_state/js/common_js_unittest.mm ('k') | ios/web/web_state/js/resources/dialog_overrides.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698