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

Issue 2931393003: [Content] Update V8ValueConverter::create to return a std::unique_ptr (Closed)

Created:
3 years, 6 months ago by Devlin
Modified:
3 years, 6 months ago
CC:
agrieve+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, extensions-reviews_chromium.org, jam, jbroman, mlamouri+watch-content_chromium.org, piman+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Content] Update V8ValueConverter::create to return a std::unique_ptr Instead of returning a raw pointer with ownership, have content::V8ValueConverter::Create return a unique_ptr. This is a) safer, since ownership is clear and safe by default and b) has the added bonus of making inline calls easier (e.g., V8ValueConverter::Create()->ToV8Value()). Also s/create()/Create() to match Chromium style. BUG=732437 Review-Url: https://codereview.chromium.org/2931393003 Cr-Commit-Position: refs/heads/master@{#479172} Committed: https://chromium.googlesource.com/chromium/src/+/694c6057a16e65dca77d04ba04c3cb35440b9f44

Patch Set 1 #

Total comments: 1

Patch Set 2 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -153 lines) Patch
M chrome/renderer/extensions/app_bindings_core.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/renderer/extensions/cast_streaming_native_handler.cc View 8 chunks +17 lines, -22 lines 0 comments Download
M chrome/renderer/extensions/platform_keys_natives.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/renderer/sandbox_status_extension_android.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M components/plugins/renderer/loadable_plugin_placeholder.cc View 1 chunk +1 line, -3 lines 0 comments Download
M content/child/v8_value_converter_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/public/child/v8_value_converter.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/gpu/gpu_benchmarking_extension.cc View 1 4 chunks +6 lines, -12 lines 0 comments Download
M content/renderer/java/gin_java_bridge_value_converter.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/skia_benchmarking_extension.cc View 1 3 chunks +6 lines, -11 lines 0 comments Download
M content/renderer/web_ui_extension.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M extensions/renderer/activity_log_converter_strategy_unittest.cc View 3 chunks +2 lines, -4 lines 0 comments Download
M extensions/renderer/api_activity_logger.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M extensions/renderer/api_binding_test_util.cc View 1 chunk +1 line, -3 lines 0 comments Download
M extensions/renderer/api_event_handler.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/renderer/api_event_listeners.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M extensions/renderer/api_request_handler.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/renderer/api_signature.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/renderer/argument_spec.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M extensions/renderer/dispatcher.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/renderer/display_source_custom_bindings.cc View 2 chunks +3 lines, -5 lines 0 comments Download
M extensions/renderer/dom_activity_logger.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M extensions/renderer/event_bindings.cc View 1 2 chunks +6 lines, -7 lines 0 comments Download
M extensions/renderer/guest_view/guest_view_internal_custom_bindings.cc View 1 2 chunks +10 lines, -16 lines 0 comments Download
M extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.cc View 1 1 chunk +2 lines, -4 lines 0 comments Download
M extensions/renderer/i18n_custom_bindings.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M extensions/renderer/messaging_bindings.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M extensions/renderer/runtime_custom_bindings.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M extensions/renderer/script_context.cc View 1 2 chunks +2 lines, -5 lines 0 comments Download
M extensions/renderer/script_injection.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M extensions/renderer/send_request_natives.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M extensions/renderer/test_features_native_handler.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M extensions/renderer/web_request_hooks.cc View 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 17 (12 generated)
Devlin
jochen@ + lazyboy@, mind taking a look? lazyboy@ - extensions jochen@ - everything else :) ...
3 years, 6 months ago (2017-06-12 20:22:16 UTC) #6
lazyboy
extensions LGTM
3 years, 6 months ago (2017-06-12 22:26:27 UTC) #7
jochen (gone - plz use gerrit)
lgtm
3 years, 6 months ago (2017-06-13 07:22:42 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2931393003/20001
3 years, 6 months ago (2017-06-13 21:54:56 UTC) #14
commit-bot: I haz the power
3 years, 6 months ago (2017-06-13 22:07:50 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/694c6057a16e65dca77d04ba04c3...

Powered by Google App Engine
This is Rietveld 408576698