summaryrefslogtreecommitdiff
path: root/chromium/content/public/browser/global_routing_id.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/public/browser/global_routing_id.h')
-rw-r--r--chromium/content/public/browser/global_routing_id.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chromium/content/public/browser/global_routing_id.h b/chromium/content/public/browser/global_routing_id.h
index 7cb4ea086f3..c7e5573f5fd 100644
--- a/chromium/content/public/browser/global_routing_id.h
+++ b/chromium/content/public/browser/global_routing_id.h
@@ -69,6 +69,9 @@ struct GlobalFrameRoutingId {
bool operator!=(const GlobalFrameRoutingId& other) const {
return !(*this == other);
}
+ explicit operator bool() const {
+ return frame_routing_id != MSG_ROUTING_NONE;
+ }
};
struct GlobalFrameRoutingIdHasher {