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

Unified Diff: tools/json_schema_compiler/h_generator.py

Issue 1853573002: [Extensions] Remove 'use_movable_types' from code generation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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: tools/json_schema_compiler/h_generator.py
diff --git a/tools/json_schema_compiler/h_generator.py b/tools/json_schema_compiler/h_generator.py
index 5452885b324182bb51315fab2934d0808329ab1c..31a7ec2330e89cd423d63de5e679f750fec93e13 100644
--- a/tools/json_schema_compiler/h_generator.py
+++ b/tools/json_schema_compiler/h_generator.py
@@ -228,10 +228,9 @@ class _Generator(object):
.Append('%(classname)s();')
.Append('~%(classname)s();')
)
- if 'use_movable_types' in type_.namespace.compiler_options:
- (c.Append('%(classname)s(%(classname)s&& rhs);')
- .Append('%(classname)s& operator=(%(classname)s&& rhs);')
- )
+ (c.Append('%(classname)s(%(classname)s&& rhs);')
+ .Append('%(classname)s& operator=(%(classname)s&& rhs);')
+ )
if type_.origin.from_json:
(c.Append()
.Comment('Populates a %s object from a base::Value. Returns'

Powered by Google App Engine
This is Rietveld 408576698