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

Unified Diff: content/renderer/chrome_object_extensions_utils.h

Issue 611483002: Fix for crash when attaching a frame in WebUI renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: As suggested, factored out the solution and used in other extensions. Created 6 years, 3 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 | « content/content_renderer.gypi ('k') | content/renderer/chrome_object_extensions_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/chrome_object_extensions_utils.h
diff --git a/content/renderer/chrome_object_extensions_utils.h b/content/renderer/chrome_object_extensions_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..1048616d79c9c1cc484aab579ea8aea3008ef751
--- /dev/null
+++ b/content/renderer/chrome_object_extensions_utils.h
@@ -0,0 +1,17 @@
+// Copyright (c) 2014 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.
+
+#ifndef CONTENT_RENDERER_CHROME_OBJECT_EXTENSIONS_UTILS_H_
+#define CONTENT_RENDERER_CHROME_OBJECT_EXTENSIONS_UTILS_H_
+
+#include "v8/include/v8.h"
+
+namespace content {
+
+v8::Handle<v8::Object> GetOrCreateChromeObject(
+ v8::Isolate* isolate, v8::Handle<v8::Object> global);
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_CHROME_OBJECT_EXTENSIONS_UTILS_H_
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/chrome_object_extensions_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698