Skip to content

Commit

Permalink
Remove most remaining semicolons in a release win build.
Browse files Browse the repository at this point in the history
Bug: 926235
Change-Id: Ie09ab129d102672a4d0de8ee2d80d2b5dd7b371e
Reviewed-on: https://chromium-review.googlesource.com/c/1483256
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#634928}
  • Loading branch information
nico committed Feb 23, 2019
1 parent 543a151 commit 32a5b8e
Show file tree
Hide file tree
Showing 30 changed files with 45 additions and 46 deletions.
2 changes: 1 addition & 1 deletion base/win/event_trace_controller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ HRESULT EtwTraceController::Query(const wchar_t* session_name,
ULONG err = ::ControlTrace(NULL, session_name, properties->get(),
EVENT_TRACE_CONTROL_QUERY);
return HRESULT_FROM_WIN32(err);
};
}

HRESULT EtwTraceController::Update(const wchar_t* session_name,
EtwTraceProperties* properties) {
Expand Down
6 changes: 3 additions & 3 deletions chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2257,11 +2257,11 @@ class BookmarkBarViewTest25 : public BookmarkBarViewEventTestBase {

// Tests that pressing F10 system key closes the menu.
using BookmarkBarViewTest25F10 = BookmarkBarViewTest25<ui::VKEY_F10>;
VIEW_TEST(BookmarkBarViewTest25F10, F10ClosesMenu);
VIEW_TEST(BookmarkBarViewTest25F10, F10ClosesMenu)

// Tests that pressing Alt system key closes the menu.
using BookmarkBarViewTest25Alt = BookmarkBarViewTest25<ui::VKEY_MENU>;
VIEW_TEST(BookmarkBarViewTest25Alt, AltClosesMenu);
VIEW_TEST(BookmarkBarViewTest25Alt, AltClosesMenu)

// Tests that WM_CANCELMODE closes the menu.
class BookmarkBarViewTest26 : public BookmarkBarViewEventTestBase {
Expand Down Expand Up @@ -2304,7 +2304,7 @@ class BookmarkBarViewTest26 : public BookmarkBarViewEventTestBase {
}
};

VIEW_TEST(BookmarkBarViewTest26, CancelModeClosesMenu);
VIEW_TEST(BookmarkBarViewTest26, CancelModeClosesMenu)
#endif

class BookmarkBarViewTest27 : public BookmarkBarViewEventTestBase {
Expand Down
8 changes: 4 additions & 4 deletions chrome/credential_provider/test/com_fakes.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ FakeCredentialProviderUser::GetValue(REFPROPERTYKEY key, PROPVARIANT* value) {
return E_NOTIMPL;
}

IMPL_IUNKOWN_NOQI_NOREF(FakeCredentialProviderUser);
IMPL_IUNKOWN_NOQI_NOREF(FakeCredentialProviderUser)

///////////////////////////////////////////////////////////////////////////////

Expand Down Expand Up @@ -88,7 +88,7 @@ HRESULT FakeCredentialProviderUserArray::GetAt(DWORD index,
return S_OK;
}

IMPL_IUNKOWN_NOQI_NOREF(FakeCredentialProviderUserArray);
IMPL_IUNKOWN_NOQI_NOREF(FakeCredentialProviderUserArray)

///////////////////////////////////////////////////////////////////////////////

Expand All @@ -102,7 +102,7 @@ HRESULT FakeCredentialProviderEvents::CredentialsChanged(
return S_OK;
}

IMPL_IUNKOWN_NOQI_NOREF(FakeCredentialProviderEvents);
IMPL_IUNKOWN_NOQI_NOREF(FakeCredentialProviderEvents)

///////////////////////////////////////////////////////////////////////////////

Expand All @@ -129,6 +129,6 @@ HRESULT FakeGaiaCredentialProvider::OnUserAuthenticated(
return S_OK;
}

IMPL_IUNKOWN_NOQI_NOREF(FakeGaiaCredentialProvider);
IMPL_IUNKOWN_NOQI_NOREF(FakeGaiaCredentialProvider)

} // namespace credential_provider
10 changes: 5 additions & 5 deletions chrome/installer/util/create_dir_work_item_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
#include "testing/gtest/include/gtest/gtest.h"

namespace {
class CreateDirWorkItemTest : public testing::Test {
protected:
void SetUp() override { ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); }
class CreateDirWorkItemTest : public testing::Test {
protected:
void SetUp() override { ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); }

base::ScopedTempDir temp_dir_;
};
base::ScopedTempDir temp_dir_;
};
} // namespace

TEST_F(CreateDirWorkItemTest, CreatePath) {
base::FilePath parent_dir(temp_dir_.GetPath());
Expand Down
2 changes: 1 addition & 1 deletion chrome/installer/util/duplicate_tree_detector_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const wchar_t DuplicateTreeDetectorTest::text_content_2_[] =
const wchar_t DuplicateTreeDetectorTest::text_content_3_[] =
L"I'd rather see your watermelon and raise you ham and a half.";

}; // namespace
} // namespace

// Test the DuplicateTreeChecker's definition of identity on two identical
// directory structures.
Expand Down
2 changes: 1 addition & 1 deletion chrome/installer/util/firewall_manager_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class FirewallManagerAdvancedImpl : public FirewallManager {
// FirewallManager methods.
bool CanUseLocalPorts() override {
return !manager_.IsFirewallEnabled() || manager_.HasAnyRule();
};
}

bool AddFirewallRules() override {
return manager_.AddUDPRule(GetMdnsRuleName(), GetMdnsRuleDescription(),
Expand Down
2 changes: 1 addition & 1 deletion chrome/installer/util/move_tree_work_item_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ std::wstring ReadTextFile(const base::FilePath& path) {

const wchar_t kTextContent1[] = L"Gooooooooooooooooooooogle";
const wchar_t kTextContent2[] = L"Overwrite Me";
}; // namespace
} // namespace

// Move one directory from source to destination when destination does not
// exist.
Expand Down
2 changes: 1 addition & 1 deletion chrome_elf/nt_registry/nt_registry.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1223,4 +1223,4 @@ std::wstring GetTestingOverride(ROOT_KEY root) {
return g_HKLM_override;
}

}; // namespace nt
} // namespace nt
2 changes: 1 addition & 1 deletion chrome_elf/nt_registry/nt_registry.h
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,6 @@ bool SetTestingOverride(ROOT_KEY root, const std::wstring& new_path);
// Getter function for test suites that use reg redirection.
std::wstring GetTestingOverride(ROOT_KEY root);

}; // namespace nt
} // namespace nt

#endif // CHROME_ELF_NT_REGISTRY_NT_REGISTRY_H_
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ bool ExtractCaseFoldedLocalizedStrings(
class ScopedAutoSignal {
public:
ScopedAutoSignal(base::WaitableEvent* waitable_event)
: waitable_event_(waitable_event){};
: waitable_event_(waitable_event) {}
~ScopedAutoSignal() { waitable_event_->Signal(); }

private:
Expand All @@ -99,7 +99,7 @@ class ScopedAutoSignal {
DWriteFontLookupTableBuilder::FontFileWithUniqueNames::FontFileWithUniqueNames(
blink::FontUniqueNameTable_UniqueFont&& font,
std::vector<std::string>&& names)
: font_entry(std::move(font)), extracted_names(std::move(names)){};
: font_entry(std::move(font)), extracted_names(std::move(names)) {}

DWriteFontLookupTableBuilder::FontFileWithUniqueNames::
~FontFileWithUniqueNames() = default;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class CONTENT_EXPORT LegacyRenderWidgetHostHWND
ATL::CWindow,
ATL::CWinTraits<WS_CHILD>> {
public:
DECLARE_WND_CLASS_EX(L"Chrome_RenderWidgetHostHWND", CS_DBLCLKS, 0);
DECLARE_WND_CLASS_EX(L"Chrome_RenderWidgetHostHWND", CS_DBLCLKS, 0)

typedef ATL::CWindowImpl<LegacyRenderWidgetHostHWND,
ATL::CWindow,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6772,7 +6772,7 @@ class RenderWidgetHostViewAuraKeyboardTest
: public RenderWidgetHostViewAuraTest {
public:
RenderWidgetHostViewAuraKeyboardTest() = default;
~RenderWidgetHostViewAuraKeyboardTest() override{};
~RenderWidgetHostViewAuraKeyboardTest() override {}
void SetUp() override {
input_method_ = new RenderWidgetHostViewAuraKeyboardMockInputMethod();
// transfers ownership.
Expand Down
2 changes: 1 addition & 1 deletion content/test/dwrite_font_fake_sender_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void FakeFontCollection::MapCharacters(
}

void FakeFontCollection::GetUniqueNameLookupTable(
GetUniqueNameLookupTableCallback callback){};
GetUniqueNameLookupTableCallback callback) {}

FakeFontCollection::~FakeFontCollection() = default;

Expand Down
4 changes: 2 additions & 2 deletions device/bluetooth/test/bluetooth_test_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -161,15 +161,15 @@ class TestBluetoothAdapterWinrt : public BluetoothAdapterWinrt {
IBluetoothAdapterStatics** statics) const override {
auto adapter_statics = Make<FakeBluetoothAdapterStaticsWinrt>(adapter_);
return adapter_statics.CopyTo(statics);
};
}

HRESULT
GetDeviceInformationStaticsActivationFactory(
IDeviceInformationStatics** statics) const override {
auto device_information_statics =
Make<FakeDeviceInformationStaticsWinrt>(device_information_);
return device_information_statics.CopyTo(statics);
};
}

HRESULT ActivateBluetoothAdvertisementLEWatcherInstance(
IBluetoothLEAdvertisementWatcher** instance) const override {
Expand Down
2 changes: 1 addition & 1 deletion device/fido/win/fake_webauthn_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ HRESULT FakeWinWebAuthnApi::CancelCurrentOperation(GUID* cancellation_id) {
const wchar_t* FakeWinWebAuthnApi::GetErrorName(HRESULT hr) {
DCHECK(is_available_);
return L"not implemented";
};
}

ScopedFakeWinWebAuthnApi::ScopedFakeWinWebAuthnApi() : FakeWinWebAuthnApi() {
WinWebAuthnApi::SetDefaultForTesting(this);
Expand Down
2 changes: 1 addition & 1 deletion device/fido/win/type_conversions_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ TEST(TypeConversionsTest, ToAuthenticatorMakeCredentialResponse) {
test.cbor_attestation_statement);
EXPECT_EQ(response->transport_used(), test.expected_transport);
}
};
}

} // namespace
} // namespace device
2 changes: 1 addition & 1 deletion device/fido/win/webauthn_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class WinWebAuthnApiImpl : public WinWebAuthnApi {
const wchar_t* GetErrorName(HRESULT hr) override {
DCHECK(is_bound_);
return get_error_name_(hr);
};
}

private:
std::pair<HRESULT, ScopedCredentialAttestation>
Expand Down
4 changes: 2 additions & 2 deletions device/vr/windows/compositor_base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void XRDeviceAbstraction::OnSessionStart() {}
void XRDeviceAbstraction::HandleDeviceLost() {}
bool XRDeviceAbstraction::PreComposite() {
return true;
};
}
void XRDeviceAbstraction::OnLayerBoundsChanged() {}

XRCompositorCommon::OutstandingFrame::OutstandingFrame() = default;
Expand Down Expand Up @@ -154,7 +154,7 @@ void XRCompositorCommon::UpdateLayerBounds(int16_t frame_id,
source_size_ = source_size;

OnLayerBoundsChanged();
};
}

void XRCompositorCommon::RequestSession(
base::OnceCallback<void()> on_presentation_ended,
Expand Down
1 change: 0 additions & 1 deletion media/capture/video/win/sink_filter_win.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ const GUID kMediaSubTypeHDYC = {
0x0000,
0x0010,
{0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}};
;

// 16-bit grey-scale single plane formats provided by some depth cameras.
const GUID kMediaSubTypeZ16 = {
Expand Down
4 changes: 2 additions & 2 deletions media/gpu/windows/d3d11_vp9_picture.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ class D3D11VP9Picture : public VP9Picture {
public:
explicit D3D11VP9Picture(D3D11PictureBuffer* picture_buffer);

D3D11PictureBuffer* picture_buffer() const { return picture_buffer_; };
D3D11PictureBuffer* picture_buffer() const { return picture_buffer_; }

size_t level() const { return level_; };
size_t level() const { return level_; }

protected:
~D3D11VP9Picture() override;
Expand Down
2 changes: 1 addition & 1 deletion rlz/win/lib/process_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ bool ProcessInfo::HasAdminRights() {
return has_rights;
}

}; // namespace
} // namespace rlz_lib
2 changes: 1 addition & 1 deletion rlz/win/lib/process_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ class ProcessInfo {
private:
DISALLOW_COPY_AND_ASSIGN(ProcessInfo);
}; // class
}; // namespace
} // namespace rlz_lib

#endif // RLZ_WIN_LIB_PROCESS_INFO_H_
4 changes: 2 additions & 2 deletions sandbox/win/src/job.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@

namespace sandbox {

Job::Job() : job_handle_(nullptr){};
Job::Job() : job_handle_(nullptr) {}

Job::~Job(){};
Job::~Job() {}

DWORD Job::Init(JobLevel security_level,
const wchar_t* job_name,
Expand Down
2 changes: 1 addition & 1 deletion sandbox/win/src/policy_engine_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class ParameterSetEx<UNICODE_STRING> : public ParameterSet {
template <typename T>
ParameterSet ParamPickerMake(T& parameter) {
return ParameterSetEx<T>(&parameter);
};
}

struct CountedParameterSetBase {
size_t count;
Expand Down
2 changes: 1 addition & 1 deletion sandbox/win/src/resolver_64.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct InternalThunk {
mov_rax = kMovRax;
jmp_rax = kJmpRax;
interceptor_function = 0;
};
}
USHORT mov_rax; // = 48 B8
ULONG_PTR interceptor_function;
USHORT jmp_rax; // = ff e0
Expand Down
2 changes: 1 addition & 1 deletion sandbox/win/src/service_resolver_64.cc
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ bool IsAnyService(const void* source) {
#error "Unsupported Windows 64-bit Arch"
#endif

}; // namespace
} // namespace

namespace sandbox {

Expand Down
2 changes: 1 addition & 1 deletion sandbox/win/src/service_resolver_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class ResolverThunkTestImpl : public T, public ResolverThunkTest {
this->target_ = fake_target_;

return ret;
};
}

DISALLOW_COPY_AND_ASSIGN(ResolverThunkTestImpl);
};
Expand Down
4 changes: 2 additions & 2 deletions sandbox/win/src/target_process.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ namespace win {

class StartupInformation;

}; // namespace win
}; // namespace base
} // namespace win
} // namespace base

namespace sandbox {

Expand Down
2 changes: 1 addition & 1 deletion sandbox/win/src/win_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ void* GetProcessBaseAddress(HANDLE process) {
return base_address;
}

}; // namespace sandbox
} // namespace sandbox

void ResolveNTFunctionPtr(const char* name, void* ptr) {
static volatile HMODULE ntdll = nullptr;
Expand Down
4 changes: 2 additions & 2 deletions ui/events/devices/input_device_observer_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ void InputDeviceObserverWin::RemoveObserver(
}

WIN_NOTIFY_OBSERVERS(NotifyObserversKeyboardDeviceConfigurationChanged(),
kKeyboard);
kKeyboard)

WIN_NOTIFY_OBSERVERS(NotifyObserversTouchpadDeviceConfigurationChanged(),
kTouchpad);
kTouchpad)

} // namespace ui

0 comments on commit 32a5b8e

Please sign in to comment.