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

Issue 441008: Many changes to DictionaryValues:... (Closed)

Created:
11 years, 1 month ago by Peter Kasting
Modified:
9 years, 7 months ago
Reviewers:
tony
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, ncarter (slow), ben+cc_chromium.org, Erik does not do reviews, idana, jam, Aaron Boodman, pam+watch_chromium.org, Paweł Hajdan Jr., kuchhal, darin (slow to review), tim (not reviewing)
Visibility:
Public.

Description

Many changes to DictionaryValues: * Add support for keys with "." in them via new XXXWithoutPathExpansion() APIs. * Use these APIs with all key iterator usage. * SetXXX() calls cannot fail, so change them from bool to void. * Change GetSize() to size() since it's cheap, and add empty(). Other: * Use standard for loop format in more places (e.g. instead of while loops when they're really doing a for loop). * Shorten a few bits of code. BUG=567 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=33109

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 9

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+422 lines, -320 lines) Patch
M base/json/json_reader.cc View 1 chunk +2 lines, -1 line 0 comments Download
M base/json/json_reader_unittest.cc View 1 2 4 chunks +43 lines, -16 lines 0 comments Download
M base/json/json_writer.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/json/json_writer_unittest.cc View 1 2 2 chunks +18 lines, -1 line 0 comments Download
M base/values.h View 1 6 chunks +39 lines, -14 lines 0 comments Download
M base/values.cc View 1 2 3 chunks +141 lines, -87 lines 1 comment Download
M base/values_unittest.cc View 2 chunks +24 lines, -2 lines 0 comments Download
M chrome/browser/blocked_popup_container.cc View 1 chunk +7 lines, -7 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_codec_unittest.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/browser_theme_provider.cc View 5 chunks +13 lines, -12 lines 0 comments Download
M chrome/browser/dom_ui/most_visited_handler.cc View 1 4 chunks +5 lines, -9 lines 0 comments Download
M chrome/browser/dom_ui/tips_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/execute_code_in_tab_function.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_file_util.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_prefs.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_prefs.cc View 8 chunks +19 lines, -22 lines 0 comments Download
M chrome/browser/extensions/extension_uitest.cc View 1 chunk +8 lines, -14 lines 0 comments Download
M chrome/browser/extensions/extensions_service_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/external_pref_extension_provider.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/extensions/sandboxed_extension_unpacker.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/metrics/metrics_log.cc View 1 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/sync/sync_setup_wizard_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/thumbnail_store.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/webdata/web_database_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 7 chunks +35 lines, -51 lines 0 comments Download
M chrome/common/extensions/extension_message_bundle.cc View 3 chunks +8 lines, -8 lines 0 comments Download
M chrome/common/extensions/extension_unpacker_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/pref_service.cc View 1 9 chunks +12 lines, -22 lines 0 comments Download
M chrome/common/pref_service_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/installer/util/google_chrome_distribution.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/installer/util/master_preferences.cc View 2 chunks +5 lines, -11 lines 0 comments Download
M chrome/test/ui/javascript_test_util.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M ipc/ipc_message_utils.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M net/base/strict_transport_security_state.cc View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Peter Kasting
11 years, 1 month ago (2009-11-25 02:46:32 UTC) #1
tony
http://codereview.chromium.org/441008/diff/2001/3006 File base/json/json_reader_unittest.cc (right): http://codereview.chromium.org/441008/diff/2001/3006#newcode377 base/json/json_reader_unittest.cc:377: Can you add a test for something like { ...
11 years ago (2009-11-25 04:53:56 UTC) #2
Peter Kasting
Will address your comments tomorrow. http://codereview.chromium.org/441008/diff/2001/3002 File base/values.cc (right): http://codereview.chromium.org/441008/diff/2001/3002#newcode279 base/values.cc:279: entry->Set(remaining_path, in_value); On 2009/11/25 ...
11 years ago (2009-11-25 05:10:00 UTC) #3
Peter Kasting
http://codereview.chromium.org/441008/diff/2001/3006 File base/json/json_reader_unittest.cc (right): http://codereview.chromium.org/441008/diff/2001/3006#newcode377 base/json/json_reader_unittest.cc:377: On 2009/11/25 04:53:56, tony wrote: > Can you add ...
11 years ago (2009-11-25 19:16:26 UTC) #4
tony
11 years ago (2009-11-25 19:30:13 UTC) #5
LGTM!

http://codereview.chromium.org/441008/diff/5036/4003
File base/values.cc (right):

http://codereview.chromium.org/441008/diff/5036/4003#newcode494
base/values.cc:494: return
current_dictionary->RemoveWithoutPathExpansion(current_path, out_value);
Nit: 80 cols

Powered by Google App Engine
This is Rietveld 408576698