Bug 796164 - Change NECKO_UNKNOWN_APP_ID to UINT32_MAX. r=ehsan
authorJason Duell <jduell.mcbugs@gmail.com>
Mon, 01 Oct 2012 21:44:29 -0700
changeset 108978 064bf6c9fe165ae35222a403eeab7e0a55e50992
parent 108977 ac5c29ec176b7492e4b60d2991940ef605eaf849
child 108979 7f3d9233b236a347174bb6f917f288fd571609ea
push id82
push usershu@rfrn.org
push dateFri, 05 Oct 2012 13:20:22 +0000
reviewersehsan
bugs796164
milestone18.0a1
Bug 796164 - Change NECKO_UNKNOWN_APP_ID to UINT32_MAX. r=ehsan
netwerk/base/public/nsNetUtil.h
--- a/netwerk/base/public/nsNetUtil.h
+++ b/netwerk/base/public/nsNetUtil.h
@@ -1305,17 +1305,17 @@ NS_UsePrivateBrowsing(nsIChannel *channe
     nsCOMPtr<nsILoadContext> loadContext;
     NS_QueryNotificationCallbacks(channel, loadContext);
     return loadContext && loadContext->UsePrivateBrowsing();
 }
 
 // Constants duplicated from nsIScriptSecurityManager so we avoid having necko
 // know about script security manager.
 #define NECKO_NO_APP_ID 0
-#define NECKO_UNKNOWN_APP_ID std::numeric_limits<uint32_t>::max()
+#define NECKO_UNKNOWN_APP_ID UINT32_MAX
 
 /**
  * Gets AppId and isInBrowserElement from channel's nsILoadContext.
  * Returns false if error or channel's callbacks don't implement nsILoadContext.
  */
 inline bool
 NS_GetAppInfo(nsIChannel *aChannel, uint32_t *aAppID, bool *aIsInBrowserElement)
 {