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

Unified Diff: chrome/browser/extensions/extension_function.cc

Issue 11818010: Make chrome.alarms API accept non-integers and too-short delays. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: After discussion, switch to 1-minute minimum alarm time Created 7 years, 11 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
Index: chrome/browser/extensions/extension_function.cc
diff --git a/chrome/browser/extensions/extension_function.cc b/chrome/browser/extensions/extension_function.cc
index c1738d367815c754218ca56c914aadcb88f8038f..7f5b20b3a5cee35563377c1b0e7ed3d8a5653085 100644
--- a/chrome/browser/extensions/extension_function.cc
+++ b/chrome/browser/extensions/extension_function.cc
@@ -289,6 +289,13 @@ void UIThreadExtensionFunction::SendResponse(bool success) {
}
}
+void UIThreadExtensionFunction::WriteToConsole(
+ content::ConsoleMessageLevel level,
+ const std::string& message) {
+ render_view_host_->Send(new ExtensionMsg_AddMessageToConsole(
+ render_view_host_->GetRoutingID(), level, message));
+}
+
IOThreadExtensionFunction::IOThreadExtensionFunction()
: routing_id_(-1) {
}

Powered by Google App Engine
This is Rietveld 408576698