From 44eb1f20ab04cb90b7ec6ae6eec67671ab2f9041 Mon Sep 17 00:00:00 2001 From: sdefresne Date: Thu, 6 Aug 2015 01:51:55 -0700 Subject: Componentize upload_list.{h,cc} and crash_upload_list.{h,cc}. Componentize upload_list.{h,cc} and crash_upload_list.{h,cc} so that the code can be shared with iOS. Do not move the factory function into the component (as it depends on //content) nor the system specific sub-classes of CrashUploadList (as they depends on //components/crash that cannot be used on iOS). Remove the dependency on content::BrowserThread by injecting the base::SequencedWorkerPool, passing the base::SequencedTaskRunner to LoadUploadListAndInformDelegateOfCompletion and checking the thread using base::ThreadChecker. BUG=516343 Review URL: https://codereview.chromium.org/1269073002 Cr-Commit-Position: refs/heads/master@{#342079} --- components/components_tests.gyp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'components/components_tests.gyp') diff --git a/components/components_tests.gyp b/components/components_tests.gyp index 018fc1a..786c424 100644 --- a/components/components_tests.gyp +++ b/components/components_tests.gyp @@ -623,6 +623,9 @@ 'update_client/update_query_params_unittest.cc', 'update_client/update_response_unittest.cc', ], + 'upload_list_unittest_sources': [ + 'upload_list/upload_list_unittest.cc', + ], 'url_fixer_unittest_sources': [ 'url_fixer/url_fixer_unittest.cc', ], @@ -765,6 +768,7 @@ '<@(translate_unittest_sources)', '<@(undo_unittest_sources)', '<@(update_client_unittest_sources)', + '<@(upload_list_unittest_sources)', '<@(url_fixer_unittest_sources)', '<@(url_matcher_unittest_sources)', '<@(variations_unittest_sources)', @@ -881,6 +885,7 @@ 'components.gyp:undo_component', 'components.gyp:update_client', 'components.gyp:update_client_test_support', + 'components.gyp:upload_list', 'components.gyp:url_fixer', 'components.gyp:variations', 'components.gyp:variations_http_provider', -- cgit v1.1