| Index: chrome/browser/ui/cocoa/tabs/tab_strip_drag_controller.mm
|
| diff --git a/chrome/browser/ui/cocoa/tabs/tab_strip_drag_controller.mm b/chrome/browser/ui/cocoa/tabs/tab_strip_drag_controller.mm
|
| index fd13ad58d77be6142d6b0c188a331a9dc2435b73..a11b210cf869417e04c15f68b259bc2715c2327a 100644
|
| --- a/chrome/browser/ui/cocoa/tabs/tab_strip_drag_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/tabs/tab_strip_drag_controller.mm
|
| @@ -538,15 +538,16 @@ const NSTimeInterval kTearDuration = 0.333;
|
| DCHECK(CFGetTypeID(dict) == CFDictionaryGetTypeID());
|
|
|
| // Sanity check the ID.
|
| - CFNumberRef otherIDRef = (CFNumberRef)base::mac::GetValueFromDictionary(
|
| - dict, kCGWindowNumber, CFNumberGetTypeID());
|
| + CFNumberRef otherIDRef =
|
| + base::mac::GetValueFromDictionary<CFNumberRef>(dict, kCGWindowNumber);
|
| CGWindowID otherID;
|
| if (otherIDRef &&
|
| CFNumberGetValue(otherIDRef, kCGWindowIDCFNumberType, &otherID) &&
|
| otherID == windowID) {
|
| // And then get the workspace.
|
| - CFNumberRef workspaceRef = (CFNumberRef)base::mac::GetValueFromDictionary(
|
| - dict, kCGWindowWorkspace, CFNumberGetTypeID());
|
| + CFNumberRef workspaceRef =
|
| + base::mac::GetValueFromDictionary<CFNumberRef>(dict,
|
| + kCGWindowWorkspace);
|
| if (!workspaceRef ||
|
| !CFNumberGetValue(workspaceRef, kCFNumberIntType, &workspace)) {
|
| workspace = -1;
|
|
|