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

Issue 2792573002: Remove base::Value::CreateNullValue (Closed)

Created:
3 years, 8 months ago by jdoerrie
Modified:
3 years, 8 months ago
CC:
chromium-reviews, nasko+codewatch_chromium.org, chromoting-reviews_chromium.org, vakh+watch_chromium.org, vmpstr+watch_chromium.org, michaelpg+watch-md-settings_chromium.org, ios-reviews+web_chromium.org, hidehiko+watch_chromium.org, oka+watch_chromium.org, yzshen+watch_chromium.org, rginda+watch_chromium.org, scheib+watch_chromium.org, lhchavez+watch_chromium.org, fukino+watch_chromium.org, net-reviews_chromium.org, yusukes+watch_chromium.org, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, ios-reviews_chromium.org, grt+watch_chromium.org, samuong+watch_chromium.org, viettrungluu+watch_chromium.org, jam, abarth-chromium, posciak+watch_chromium.org, darin-cc_chromium.org, devtools-reviews_chromium.org, darin (slow to review), chromium-apps-reviews_chromium.org, dbeam+watch-options_chromium.org, mlamouri+watch-content_chromium.org, alemate+watch_chromium.org, creis+watch_chromium.org, qsr+mojo_chromium.org, yamaguchi+watch_chromium.org, timvolodine, media-router+watch_chromium.org, pam+watch_chromium.org, oshima+watch_chromium.org, piman+watch_chromium.org, agrieve+watch_chromium.org, dbeam+watch-settings_chromium.org, elijahtaylor+arcwatch_chromium.org, Dirk Pranke, michaelpg+watch-options_chromium.org, feature-media-reviews_chromium.org, tfarina, Eugene But (OOO till 7-30), Aaron Boodman, davemoore+watch_chromium.org, victorhsieh+watch_chromium.org, mac-reviews_chromium.org, ortuno+watch_chromium.org, cc-bugs_chromium.org, stevenjb+watch-md-settings_chromium.org, pfeldman
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove base::Value::CreateNullValue This change removes base::Value::CreateNullValue in favor of Value's default constructor. In particular, this change - Replaces |Value::CreateNullValue()| with |MakeUnique<Value>()|. - Adds #includes of base/memory/ptr_util.h where needed. - Replaces |std::unique_ptr<Value>| with |auto| where appropriate. - Replaces |*Value::CreateNullValue()| with |Value()|. - Replaces |Value::CreateNullValue().release()| with |new Value()|. BUG=646113 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2792573002 Cr-Commit-Position: refs/heads/master@{#462794} Committed: https://chromium.googlesource.com/chromium/src/+/e067999ab52ac73c13981b100f3ebcf9c62ef817

Patch Set 1 #

Patch Set 2 : Further simplifications #

Patch Set 3 : Fix Compilation Error #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -189 lines) Patch
M base/json/json_parser.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/json/json_writer_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M base/test/values_test_util.cc View 2 chunks +2 lines, -1 line 0 comments Download
M base/values.h View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M base/values.cc View 1 2 3 2 chunks +1 line, -6 lines 0 comments Download
M base/values_unittest.cc View 1 2 3 8 chunks +13 lines, -13 lines 0 comments Download
M cc/benchmarks/invalidation_benchmark.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/devtools/devtools_file_helper.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/cookies/cookies_api.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/settings_private/settings_private_delegate.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_api.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/web_navigation/web_navigation_api.cc View 4 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/policy/test/local_policy_test_server.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate_unittest.cc View 1 2 3 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/first_run/first_run_handler.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc View 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/options/certificate_manager_handler.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/cookies_view_handler.cc View 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/core_options_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/settings/about_handler.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/settings/certificates_handler.cc View 1 8 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/ui/webui/settings/on_startup_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/settings/reset_settings_handler.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/webui/settings/settings_cookies_view_handler.cc View 6 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/settings/settings_startup_pages_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/settings/site_settings_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/supervised_user_internals_message_handler.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/test/chromedriver/capabilities_unittest.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/test/chromedriver/chrome/web_view_impl.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/test/chromedriver/commands_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/test/chromedriver/server/http_handler.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M components/arc/bluetooth/bluetooth_type_converters.cc View 5 chunks +5 lines, -5 lines 0 comments Download
M components/arc/bluetooth/bluetooth_type_converters_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/dom_distiller/content/browser/distiller_page_web_contents.cc View 2 chunks +2 lines, -1 line 0 comments Download
M components/dom_distiller/core/distiller_unittest.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M components/dom_distiller/ios/distiller_page_ios.mm View 1 2 chunks +2 lines, -2 lines 0 comments Download
M components/history/core/browser/top_sites_impl.cc View 2 chunks +2 lines, -1 line 0 comments Download
M components/json_schema/json_schema_validator_unittest_base.cc View 7 chunks +7 lines, -7 lines 0 comments Download
M components/policy/core/browser/android/policy_converter.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/policy/core/common/mac_util.cc View 2 chunks +2 lines, -1 line 0 comments Download
M components/policy/core/common/mac_util_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M components/policy/core/common/policy_loader_win_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/policy/core/common/registry_dict.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/policy/core/common/schema_map_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/policy/core/common/schema_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M components/sync_preferences/pref_model_associator_unittest.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M components/sync_preferences/pref_service_syncable_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/android/java/gin_java_bridge_dispatcher_host.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/android/java/gin_java_bridge_message_filter.cc View 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/android/java/gin_java_method_invocation_helper.cc View 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/android/java/gin_java_script_to_java_types_coercion.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M content/browser/devtools/protocol_string.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/gpu/gpu_internals_ui.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/child/v8_value_converter_impl.cc View 5 chunks +5 lines, -5 lines 0 comments Download
M content/child/v8_value_converter_impl_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/common_param_traits_unittest.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/java/gin_java_function_invocation_helper.cc View 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/stats_collection_controller.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/api/socket/socket_api.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/app_window/app_window.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/common/permissions/manifest_permission_set_unittest.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M extensions/renderer/api_signature.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M extensions/renderer/script_injection.cc View 2 chunks +2 lines, -1 line 0 comments Download
M headless/lib/browser/headless_devtools_client_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/web/web_state/ui/web_view_js_utils.mm View 1 chunk +1 line, -1 line 0 comments Download
M ipc/ipc_message_unittest.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M ipc/ipc_message_utils.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ipc/ipc_message_utils_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M media/base/video_frame_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M mojo/common/common_custom_types_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M mojo/common/values_struct_traits.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/test/spawned_test_server/base_test_server.cc View 7 chunks +14 lines, -13 lines 0 comments Download
M net/test/spawned_test_server/remote_test_server.cc View 2 chunks +2 lines, -1 line 0 comments Download
M remoting/host/setup/me2me_native_messaging_host.cc View 2 chunks +2 lines, -1 line 0 comments Download
M services/preferences/tracked/pref_hash_calculator_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/desc_builder.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M tools/json_schema_compiler/test/error_generation_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M tools/json_schema_compiler/test/simple_api_unittest.cc View 3 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (20 generated)
jdoerrie
* brettw@: Please review base/values* and spot check the rest. * stevenjb@: Please review chrome/browser/ui/webui/options/* ...
3 years, 8 months ago (2017-04-03 10:58:24 UTC) #13
Robert Sesek
LGTM
3 years, 8 months ago (2017-04-03 15:54:45 UTC) #14
stevenjb
c/b/chromeos, c/b/ui/webui lgtm
3 years, 8 months ago (2017-04-03 17:31:12 UTC) #15
jdoerrie
brettw@: A friendly ping to review this.
3 years, 8 months ago (2017-04-06 14:37:47 UTC) #18
brettw
lgtm
3 years, 8 months ago (2017-04-06 19:44:17 UTC) #21
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/2792573002/60001
3 years, 8 months ago (2017-04-07 06:33:05 UTC) #24
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 06:40:26 UTC) #27
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/e067999ab52ac73c13981b100f3e...

Powered by Google App Engine
This is Rietveld 408576698