summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/cocoa/bookmark_bar_folder_view.mm3
-rw-r--r--chrome/browser/cocoa/bookmark_bar_view.mm3
-rw-r--r--chrome/browser/cocoa/bookmark_button.h2
3 files changed, 3 insertions, 5 deletions
diff --git a/chrome/browser/cocoa/bookmark_bar_folder_view.mm b/chrome/browser/cocoa/bookmark_bar_folder_view.mm
index 6f0db17..9ede01b 100644
--- a/chrome/browser/cocoa/bookmark_bar_folder_view.mm
+++ b/chrome/browser/cocoa/bookmark_bar_folder_view.mm
@@ -158,8 +158,7 @@
if (data && [info draggingSource]) {
BookmarkButton* button = nil;
[data getBytes:&button length:sizeof(button)];
- BOOL copy =
- [info draggingSourceOperationMask] & NSDragOperationMove ? NO : YES;
+ BOOL copy = !([info draggingSourceOperationMask] & NSDragOperationMove);
doDrag = [[self controller] dragButton:button
to:[info draggingLocation]
copy:copy];
diff --git a/chrome/browser/cocoa/bookmark_bar_view.mm b/chrome/browser/cocoa/bookmark_bar_view.mm
index 9e47614..1f2e417 100644
--- a/chrome/browser/cocoa/bookmark_bar_view.mm
+++ b/chrome/browser/cocoa/bookmark_bar_view.mm
@@ -220,8 +220,7 @@
if (data && [info draggingSource]) {
BookmarkButton* button = nil;
[data getBytes:&button length:sizeof(button)];
- BOOL copy =
- [info draggingSourceOperationMask] & NSDragOperationMove ? NO : YES;
+ BOOL copy = !([info draggingSourceOperationMask] & NSDragOperationMove);
rtn = [controller_ dragButton:button
to:[info draggingLocation]
copy:copy];
diff --git a/chrome/browser/cocoa/bookmark_button.h b/chrome/browser/cocoa/bookmark_button.h
index 0bc1994..ddc0500 100644
--- a/chrome/browser/cocoa/bookmark_button.h
+++ b/chrome/browser/cocoa/bookmark_button.h
@@ -59,7 +59,7 @@ class ThemeProvider;
// made and inserted into the new location while leaving the bookmark in
// the old location, otherwise move the bookmark by removing from its old
// location and inserting into the new location.
-- (BOOL)dragButton:(BookmarkButton *)sourceButton
+- (BOOL)dragButton:(BookmarkButton*)sourceButton
to:(NSPoint)point
copy:(BOOL)copy;