Skip to content

Commit

Permalink
Add missing curlies in CocoaDragDropDataProvider
Browse files Browse the repository at this point in the history
Otherwise the |data_| member is actually static (and causes a static
initializer).

BUG=599585
TBR=spqchan@chromium.org

Review-Url: https://codereview.chromium.org/2039723002
Cr-Commit-Position: refs/heads/master@{#397956}
  • Loading branch information
tapted authored and Commit bot committed Jun 6, 2016
1 parent 29d59af commit 851eb42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/views/cocoa/drag_drop_client_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ - (id)initWithData:(const ui::OSExchangeData&)data;
- (id)initWithPasteboard:(NSPasteboard*)pasteboard;
@end

@implementation CocoaDragDropDataProvider

std::unique_ptr<ui::OSExchangeData> data_;
@implementation CocoaDragDropDataProvider {
std::unique_ptr<ui::OSExchangeData> data_;
}

- (id)initWithData:(const ui::OSExchangeData&)data {
if ((self = [super init])) {
Expand Down

0 comments on commit 851eb42

Please sign in to comment.