| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/public/common/quarantine.h" | 5 #include "content/public/common/quarantine.h" |
| 6 | 6 |
| 7 #import <ApplicationServices/ApplicationServices.h> | 7 #import <ApplicationServices/ApplicationServices.h> |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 if (![source_url | 337 if (![source_url |
| 338 isEqualToString:base::SysUTF8ToNSString(expected_source_url.spec())]) | 338 isEqualToString:base::SysUTF8ToNSString(expected_source_url.spec())]) |
| 339 return false; | 339 return false; |
| 340 | 340 |
| 341 return !referrer_url.is_valid() || | 341 return !referrer_url.is_valid() || |
| 342 [[[properties valueForKey:(NSString*)kLSQuarantineOriginURLKey] | 342 [[[properties valueForKey:(NSString*)kLSQuarantineOriginURLKey] |
| 343 description] | 343 description] |
| 344 isEqualToString:base::SysUTF8ToNSString(referrer_url.spec())]; | 344 isEqualToString:base::SysUTF8ToNSString(referrer_url.spec())]; |
| 345 } | 345 } |
| 346 | 346 |
| 347 // Only to be used in tests. |
| 348 bool IsQuarantineSupportedForTesting() { |
| 349 return true; |
| 350 } |
| 351 |
| 347 } // namespace content | 352 } // namespace content |
| OLD | NEW |