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

Unified Diff: Source/core/inspector/CodeGeneratorInstrumentation.py

Issue 645693003: [DevTools] Console Message Storage moved from top local frame to frame host (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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: Source/core/inspector/CodeGeneratorInstrumentation.py
diff --git a/Source/core/inspector/CodeGeneratorInstrumentation.py b/Source/core/inspector/CodeGeneratorInstrumentation.py
index 54e5ce8a4359084ecf615103864ac672b957d494..d4212e53cacbe8760e5b79725117c083d09c04b0 100755
--- a/Source/core/inspector/CodeGeneratorInstrumentation.py
+++ b/Source/core/inspector/CodeGeneratorInstrumentation.py
@@ -336,12 +336,14 @@ class Method:
elif self.returns_value:
body_lines.append("\n return %s;" % self.default_return_value)
- cpp_lines.append(template_outofline.substitute(
+ generated_outofline = template_outofline.substitute(
None,
return_type=self.return_type,
name=self.name,
params_impl=", ".join(map(Parameter.to_str_class_and_name, self.params_impl)),
- impl_lines="".join(body_lines)))
+ impl_lines="".join(body_lines))
+ if generated_outofline not in cpp_lines:
+ cpp_lines.append(generated_outofline)
def generate_agent_call(self, agent):
agent_class, agent_getter = agent_getter_signature(agent)

Powered by Google App Engine
This is Rietveld 408576698