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

Unified Diff: chrome/renderer/resources/extensions/last_error.js

Issue 10748011: Fix to problem of chrome.runtime sometimes not being defined. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: less hacky approach Created 8 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/extensions/last_error.js
diff --git a/chrome/renderer/resources/extensions/last_error.js b/chrome/renderer/resources/extensions/last_error.js
index 66f69f5150da75d238126cfa15b1681d4b507b90..5ed8f29c5023e88cfdd46611f43c16066a5f4e2a 100644
--- a/chrome/renderer/resources/extensions/last_error.js
+++ b/chrome/renderer/resources/extensions/last_error.js
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+requireNative("runtime");
Mihai Parparita -not on Chrome 2012/07/10 20:02:08 Nit: should use single quotes.
asargent_no_longer_on_chrome 2012/07/10 20:11:13 Done.
+
function set(message) {
var errorObject = { "message": message };
if (chrome.extension)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698