| Index: components/previews/core/previews_experiments.cc
|
| diff --git a/components/previews/core/previews_experiments.cc b/components/previews/core/previews_experiments.cc
|
| index e8d738aa60a6b5fb0c735ab700faf301582065a2..9709c61bacbe0441a8703112c0e6312f11a99ebd 100644
|
| --- a/components/previews/core/previews_experiments.cc
|
| +++ b/components/previews/core/previews_experiments.cc
|
| @@ -173,4 +173,22 @@ bool IsIncludedInClientSidePreviewsExperimentsFieldTrial() {
|
| kEnabled, base::CompareCase::SENSITIVE);
|
| }
|
|
|
| +std::string GetStringNameForType(PreviewsType type) {
|
| + switch (type) {
|
| + case PreviewsType::OFFLINE:
|
| + return "Offline";
|
| + case PreviewsType::CLIENT_LOFI:
|
| + return "ClientLoFi";
|
| + case PreviewsType::SERVER_LOFI:
|
| + return "ServerLoFi";
|
| + case PreviewsType::LITE_PAGE:
|
| + return "LitePage";
|
| + case PreviewsType::NONE:
|
| + case PreviewsType::LAST:
|
| + break;
|
| + }
|
| + NOTREACHED();
|
| + return std::string();
|
| +}
|
| +
|
| } // namespace previews
|
|
|