commit | 7784def0dfa6342baa09769d570fe2b3259b3098 | [log] [tgz] |
---|---|---|
author | Ramin Halavati <[email protected]> | Mon May 20 09:20:46 2019 |
committer | Commit Bot <[email protected]> | Mon May 20 09:20:46 2019 |
tree | c4f3d24a35dc6ef66cada39cd4c35c4e7abea411 | |
parent | ade0f560b21e4e8b39ed7bd3eb9c14806adad7dc [diff] [blame] |
Restrict access to profile type to reduce possible misuses. Profile::GetProfileType() is made protected to persuade usage of profile type functions (IsRegularProfile, IsIncognito, IsGuestProfile). Bug: 947933 Change-Id: Ie049488fa714002b3a0372946040fef82672d440 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1611986 Reviewed-by: Marc Treib <[email protected]> Reviewed-by: Mihai Sardarescu <[email protected]> Commit-Queue: Ramin Halavati <[email protected]> Cr-Commit-Position: refs/heads/master@{#661299}
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm index 0f4d4b11..b9acc12 100644 --- a/chrome/browser/app_controller_mac.mm +++ b/chrome/browser/app_controller_mac.mm
@@ -1713,7 +1713,7 @@ // Handoff is not allowed from an incognito profile. To err on the safe side, // also disallow Handoff from a guest profile. - if (profile->GetProfileType() != Profile::REGULAR_PROFILE) + if (!profile->IsRegularProfile()) return GURL(); if (!webContents)