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

Unified Diff: content/child/child_thread.cc

Issue 147973002: Move SetJavaScriptFlags() from webkit to content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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: content/child/child_thread.cc
diff --git a/content/child/child_thread.cc b/content/child/child_thread.cc
index 5b54ee041f9b9c0198bdb90a4da2208eee7b8849..13af995b7f08f54194619e439e535024f5f9b156 100644
--- a/content/child/child_thread.cc
+++ b/content/child/child_thread.cc
@@ -39,6 +39,7 @@
#include "ipc/ipc_switches.h"
#include "ipc/ipc_sync_channel.h"
#include "ipc/ipc_sync_message_filter.h"
+#include "v8/include/v8.h"
#if defined(OS_WIN)
#include "content/common/handle_enumerator_win.h"
@@ -279,6 +280,10 @@ void ChildThread::Shutdown() {
quota_dispatcher_.reset();
}
+void ChildThread::SetJavaScriptFlags(const std::string& str) {
+ v8::V8::SetFlagsFromString(str.data(), static_cast<int>(str.size()));
+}
+
void ChildThread::OnChannelConnected(int32 peer_pid) {
channel_connected_factory_.InvalidateWeakPtrs();
}

Powered by Google App Engine
This is Rietveld 408576698