1// Copyright 2014 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#include "chrome/browser/android/activity_type_ids.h" 6 7#include "base/logging.h" 8 9namespace ActivityTypeIds { 10 11Type GetActivityType(int type_id) { 12 if (type_id >= ACTIVITY_NONE && type_id <= ACTIVITY_MAX_VALUE) 13 return Type(type_id); 14 15 NOTREACHED() << "Unhandled Activity id was passed in: " << type_id; 16 return ACTIVITY_MAX_VALUE; 17} 18 19} // namespace ActivityTypeIds 20