diff options
author | tsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-07 20:43:24 +0000 |
---|---|---|
committer | tsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-07 20:43:24 +0000 |
commit | 9a6ac543bae6757d5ed45e98f86189b591bc5205 (patch) | |
tree | 5e9857fa2f578cf834a179d26cd226cfc1d7013b | |
parent | 80ebef00cacd9fb9659f8532b7943ed8428df0ce (diff) | |
download | chromium_src-9a6ac543bae6757d5ed45e98f86189b591bc5205.zip chromium_src-9a6ac543bae6757d5ed45e98f86189b591bc5205.tar.gz chromium_src-9a6ac543bae6757d5ed45e98f86189b591bc5205.tar.bz2 |
Use validating form of IPC enum macros for geolocation messages.
This is part of a long-running background task to remove the remaining
uses of the unchecked IPC_ENUM_TRAITS() macro.
BUG=246708
Review URL: https://codereview.chromium.org/156993003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249768 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | content/common/geolocation_messages.h | 3 | ||||
-rw-r--r-- | content/public/common/geoposition.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/content/common/geolocation_messages.h b/content/common/geolocation_messages.h index 2c70a74..f40cdb8 100644 --- a/content/common/geolocation_messages.h +++ b/content/common/geolocation_messages.h @@ -11,7 +11,8 @@ #define IPC_MESSAGE_START GeolocationMsgStart -IPC_ENUM_TRAITS(content::Geoposition::ErrorCode) +IPC_ENUM_TRAITS_MAX_VALUE(content::Geoposition::ErrorCode, + content::Geoposition::ERROR_CODE_LAST) IPC_STRUCT_TRAITS_BEGIN(content::Geoposition) IPC_STRUCT_TRAITS_MEMBER(latitude) diff --git a/content/public/common/geoposition.h b/content/public/common/geoposition.h index 8cbee51..0494696 100644 --- a/content/public/common/geoposition.h +++ b/content/public/common/geoposition.h @@ -25,6 +25,7 @@ struct CONTENT_EXPORT Geoposition { ERROR_CODE_PERMISSION_DENIED = 1, ERROR_CODE_POSITION_UNAVAILABLE = 2, ERROR_CODE_TIMEOUT = 3, + ERROR_CODE_LAST = ERROR_CODE_TIMEOUT }; // All fields are initialized to sentinel values marking them as invalid. The |