blob: 8190e2603ec634ff623949a81d78a3ba02c909ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/common/media_router/media_route_provider_helper.h"
#include "base/logging.h"
namespace media_router {
const char* ProviderIdToString(MediaRouteProviderId provider_id) {
switch (provider_id) {
case EXTENSION:
return "EXTENSION";
case WIRED_DISPLAY:
return "WIRED_DISPLAY";
case CAST:
return "CAST";
case DIAL:
return "DIAL";
case UNKNOWN:
return "UNKNOWN";
}
NOTREACHED() << "Unknown provider_id " << static_cast<int>(provider_id);
return "Unknown provider_id";
}
} // namespace media_router
|