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

Issue 10830061: Revert 148856 (broke mac, asan, linux cros bots) (Closed)

Created:
8 years, 4 months ago by Nico
Modified:
8 years, 4 months ago
Reviewers:
miket_OOO
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org
Visibility:
Public.

Description

Revert 148856 (broke mac, asan, linux cros bots) cc1plus: warnings being treated as errors ./chrome/browser/extensions/api/api_resource_manager.h: In member function 'void extensions::TestExtensionSystem::CreateSocketManager()': ./chrome/browser/extensions/api/api_resource_manager.h:28:error: 'id' is used uninitialized in this function chrome/browser/extensions/test_extension_system.cc:55: note: 'id' was declared here /b/build/slave/cr-mac-rel/build/src/chrome/browser/extensions/test_extension_system.cc:56:3:error: variable 'id' is used uninitialized whenever '&&' condition is false [-Werror,-Wsometimes-uninitialized] DCHECK(BrowserThread::GetCurrentThreadIdentifier(&id)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../base/logging.h:706:35: note: expanded from macro 'DCHECK' LAZY_STREAM(LOG_STREAM(DCHECK), DCHECK_IS_ON() && !(condition)) \ ^ ../base/logging.h:670:3: note: expanded from macro 'DCHECK_IS_ON' ((::logging::g_dcheck_state == \ ^ ../base/logging.h:362:5: note: expanded from macro 'LAZY_STREAM' !(condition) ? (void) 0 : ::logging::LogMessageVoidify() & (stream) ^~~~~~~~~ /b/build/slave/cr-mac-rel/build/src/chrome/browser/extensions/test_extension_system.cc:57:56: note: uninitialized use occurs here socket_manager_.reset(new ApiResourceManager<Socket>(id)); ^~ /b/build/slave/cr-mac-rel/build/src/chrome/browser/extensions/test_extension_system.cc:56:3: note: remove the '&&' if its condition is always true DCHECK(BrowserThread::GetCurrentThreadIdentifier(&id)); ^ ../base/logging.h:706:35: note: expanded from macro 'DCHECK' LAZY_STREAM(LOG_STREAM(DCHECK), DCHECK_IS_ON() && !(condition)) \ ^ ../base/logging.h:670:3: note: expanded from macro 'DCHECK_IS_ON' ((::logging::g_dcheck_state == \ ^ ../base/logging.h:362:5: note: expanded from macro 'LAZY_STREAM' !(condition) ? (void) 0 : ::logging::LogMessageVoidify() & (stream) ^ /b/build/slave/cr-mac-rel/build/src/chrome/browser/extensions/test_extension_system.cc:55:3: note: variable 'id' is declared here BrowserThread::ID id; ^ 1 error generated. - Improve unit testing of socket API. Add socket_api_unittest.cc, which calls Socket API functions directly. This skips the whole browser_tests setup that is relatively slow and expensive. The current test merely validates the socket-type argument handling, but the next phase will simulate blocking socket operations. BUG=112902 TEST=see above Review URL: https://chromiumcodereview.appspot.com/10795052 TBR=miket@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=148859

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -107 lines) Patch
M chrome/browser/extensions/api/socket/socket_api.cc View 1 chunk +0 lines, -4 lines 0 comments Download
D chrome/browser/extensions/api/socket/socket_api_unittest.cc View 1 chunk +0 lines, -83 lines 0 comments Download
M chrome/browser/extensions/test_extension_system.h View 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/extensions/test_extension_system.cc View 3 chunks +1 line, -15 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Nico
8 years, 4 months ago (2012-07-28 01:19:32 UTC) #1
miket_OOO
8 years, 4 months ago (2012-07-30 03:31:25 UTC) #2
On 2012/07/28 01:19:32, Nico wrote:

LGTM. Sorry about that; I ran it on all the standard trybots.

Powered by Google App Engine
This is Rietveld 408576698