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

Issue 3447008: base: Finish moving the SplitString functions from string_util.h to string_split.h (Closed)

Created:
10 years, 3 months ago by tfarina
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Paweł Hajdan Jr., jshin+watch_chromium.org, brettw-cc_chromium.org, cbentzel+watch_chromium.org, ben+cc_chromium.org, darin-cc_chromium.org, pam+watch_chromium.org, stuartmorgan+watch_chromium.org, jam, Erik does not do reviews, Aaron Boodman, dhollowa, amit, nkostylev+cc_chromium.org, davemoore+watch_chromium.org
Base URL:
git://git.chromium.org/chromium.git
Visibility:
Public.

Description

base: Finish moving the SplitString functions from string_util.h to string_split.h BUG=None TEST=trybos Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=60422

Patch Set 1 : #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : jungshik and brett review #

Patch Set 4 : #

Patch Set 5 : fix views #

Patch Set 6 : chrome frame fixes #

Total comments: 2

Patch Set 7 : jungshik review and chrome_frame fixes #

Patch Set 8 : breakpad fix #

Patch Set 9 : more browser fixes #

Patch Set 10 : selenium fix #

Total comments: 1

Patch Set 11 : fix issues #

Patch Set 12 : chromeos fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+250 lines, -179 lines) Patch
M app/l10n_util.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M app/text_elider.cc View 1 chunk +1 line, -0 lines 0 comments Download
M base/command_line.cc View 1 chunk +1 line, -0 lines 0 comments Download
M base/process_util_linux.cc View 1 chunk +1 line, -0 lines 0 comments Download
M base/string_split.h View 1 2 7 8 9 10 1 chunk +27 lines, -0 lines 0 comments Download
M base/string_split.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +47 lines, -25 lines 0 comments Download
M base/string_split_unittest.cc View 1 chunk +67 lines, -0 lines 0 comments Download
M base/string_util.h View 1 2 2 chunks +6 lines, -19 lines 0 comments Download
M base/string_util.cc View 1 chunk +0 lines, -45 lines 0 comments Download
M base/string_util_unittest.cc View 1 chunk +0 lines, -67 lines 0 comments Download
M base/version.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/app/breakpad_win.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_index_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/browser_main.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/input_method/input_method_util.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/login/google_authenticator.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/options/language_config_model.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/preferences.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/status/language_menu_button.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/version_loader.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/dom_ui/cookies_view_handler.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/dom_ui/new_tab_page_sync_handler.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/download/download_prefs.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/download/save_package.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extension_devtools_events.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extension_updater.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extension_updater_unittest.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/first_run/first_run_win.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/history/snippet.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/history/snippet_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/importer/firefox2_importer.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/importer/firefox_importer_utils.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/importer/ie_importer.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/importer/nss_decryptor.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/importer/toolbar_importer.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/language_combobox_model.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/language_order_table_model.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/password_manager/password_form_manager.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/process_singleton_linux.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/safe_browsing/chunk_range.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/protocol_parser.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/search_engines/template_url_model_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/spellcheck_host.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/translate/translate_manager.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/views/shell_dialogs_win.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/webdata/web_database.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/url_pattern.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pepper_plugin_registry.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/zip.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/default_plugin/plugin_database_handler.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/util/compat_checks.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/util/shell_util.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/util/version.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/spellchecker/spellcheck_worditerator_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/webplugin_delegate_proxy.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/test/automated_ui_tests/automated_ui_tests.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/chrome_process_util_mac.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/test/selenium/selenium_test.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/test/startup/startup_test.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/ui/dom_checker_uitest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/test/ui/ui_test.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/webdriver/dispatch.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/tools/convert_dict/aff_reader.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome_frame/chrome_frame_activex.cc View 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome_frame/chrome_frame_npapi.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome_frame/metrics_service.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/base/host_mapping_rules.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M net/base/net_util.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/ftp/ftp_directory_listing_parser_ls.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/ftp/ftp_directory_listing_parser_mlsd.cc View 2 chunks +2 lines, -1 line 0 comments Download
M net/ftp/ftp_directory_listing_parser_netware.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/ftp/ftp_directory_listing_parser_vms.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M net/ftp/ftp_directory_listing_parser_vms_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M net/ftp/ftp_directory_listing_parser_windows.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M net/http/http_network_layer.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/http/http_stream_factory.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/tools/hresolv/hresolv.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/websockets/websocket_job_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M views/controls/label.cc View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/plugins/plugin_lib_mac.mm View 2 chunks +2 lines, -1 line 0 comments Download
M webkit/glue/plugins/plugin_lib_posix.cc View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/plugins/plugin_list.cc View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/plugins/plugin_list_posix.cc View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/plugins/plugin_list_win.cc View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/plugins/webplugin_delegate_impl_win.cc View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
tfarina
Brett, could you review this to me? To fix the following failure on rlz library ...
10 years, 3 months ago (2010-09-17 15:56:09 UTC) #1
tfarina
It seems a simple solution would be include string_split in string_util (like we already do ...
10 years, 3 months ago (2010-09-18 04:16:43 UTC) #2
brettw
http://codereview.chromium.org/3447008/diff/7002/35009 File base/string_util.h (right): http://codereview.chromium.org/3447008/diff/7002/35009#newcode28 base/string_util.h:28: #include "base/string_split.h" If you look down below for RLZ_WIN_LIB_RLZ_LIB_H_, ...
10 years, 3 months ago (2010-09-20 18:07:03 UTC) #3
jungshik at Google
http://codereview.chromium.org/3447008/diff/7002/35006 File base/string_split.h (right): http://codereview.chromium.org/3447008/diff/7002/35006#newcode23 base/string_split.h:23: // Every substring is trimmed of any leading or ...
10 years, 3 months ago (2010-09-20 21:26:03 UTC) #4
tfarina
http://codereview.chromium.org/3447008/diff/7002/35006 File base/string_split.h (right): http://codereview.chromium.org/3447008/diff/7002/35006#newcode23 base/string_split.h:23: // Every substring is trimmed of any leading or ...
10 years, 3 months ago (2010-09-21 04:53:12 UTC) #5
tfarina
On 2010/09/20 18:07:03, brettw wrote: > In your later pass, if you're able to submit ...
10 years, 3 months ago (2010-09-21 19:03:36 UTC) #6
brettw
LGTM
10 years, 3 months ago (2010-09-21 20:46:40 UTC) #7
brettw
BTW if you're looking for something to do next, it would be nice if string_split ...
10 years, 3 months ago (2010-09-21 20:48:19 UTC) #8
jungshik at Google
http://codereview.chromium.org/3447008/diff/57001/58006 File base/string_split.h (right): http://codereview.chromium.org/3447008/diff/57001/58006#newcode36 base/string_split.h:36: // UTF-8, and other single/multi-byte ASCII-compatible encodings are OK. ...
10 years, 3 months ago (2010-09-22 23:05:11 UTC) #9
tfarina
http://codereview.chromium.org/3447008/diff/57001/58006 File base/string_split.h (right): http://codereview.chromium.org/3447008/diff/57001/58006#newcode36 base/string_split.h:36: // UTF-8, and other single/multi-byte ASCII-compatible encodings are OK. ...
10 years, 3 months ago (2010-09-23 01:00:50 UTC) #10
tfarina
http://codereview.chromium.org/3447008/diff/34002/65005 File base/string_split.cc (right): http://codereview.chromium.org/3447008/diff/34002/65005#newcode54 base/string_split.cc:54: DCHECK(IsStringUTF8(str)); Jungshik, this check is raising in ExtractCurrentFile from ...
10 years, 3 months ago (2010-09-23 05:28:25 UTC) #11
jungshik at Google
10 years, 3 months ago (2010-09-23 19:37:43 UTC) #12
On 2010/09/23 05:28:25, tfarina wrote:
> http://codereview.chromium.org/3447008/diff/34002/65005
> File base/string_split.cc (right):
> 
> http://codereview.chromium.org/3447008/diff/34002/65005#newcode54
> base/string_split.cc:54: DCHECK(IsStringUTF8(str));
> Jungshik, this check is raising in ExtractCurrentFile from zip.cc, see bt
below:

Hmm... UnzipEvil2 tests 'evil_via_invalid_utf8.zip'.   

Perhaps, you just have to restore the old comment to SplitString and a
warning. And, you have to remove DCHECK in SplitString. You can keep
SplitStringDontTrim as is in your latest patch. 




> 
> [11615:11615:0922/220345:4964042953:FATAL:base/string_split.cc(54)] Check
> failed: IsStringUTF8(str). 
> Backtrace:
> 	StackTrace::StackTrace() [0x985f546]
> 	logging::LogMessage::~LogMessage() [0x9879e33]
> 	SplitString() [0x98a1763]
> 	ExtractCurrentFile() [0x928b596]
> 	Unzip() [0x928ba1c]
> 	(anonymous namespace)::ZipTest_UnzipEvil2_Test::TestBody() [0x88f544c]
> 	testing::Test::Run() [0x94c9bc0]
> 	testing::internal::TestInfoImpl::Run() [0x94cd689]
> 	testing::TestCase::Run() [0x94cd7cb]
> 	testing::internal::UnitTestImpl::RunAllTests() [0x94ce369]
> 	testing::UnitTest::Run() [0x94ce4f6]
> 	base::TestSuite::Run() [0xab4df6b]
> 	main [0x93cb9ae]
> 	0x40cd4450
> 	0x80481a1
> 
>
http://build.chromium.org/buildbot/try-server/builders/linux/builds/47430/ste...

Powered by Google App Engine
This is Rietveld 408576698