| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/arc/fileapi/arc_media_view_util.h" | 5 #include "chrome/browser/chromeos/arc/fileapi/arc_media_view_util.h" |
| 6 | 6 |
| 7 namespace arc { | 7 namespace arc { |
| 8 | 8 |
| 9 namespace { | 9 namespace { |
| 10 | 10 |
| 11 constexpr char kMediaViewVolumeIdPrefix[] = "media_view:"; | 11 constexpr char kMediaViewVolumeIdPrefix[] = "media_view:"; |
| 12 | 12 |
| 13 } // namespace | 13 } // namespace |
| 14 | 14 |
| 15 const base::Feature kMediaViewFeature{"ArcMediaView", | 15 const base::Feature kMediaViewFeature{"ArcMediaView", |
| 16 base::FEATURE_DISABLED_BY_DEFAULT}; | 16 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 17 | 17 |
| 18 const char kMediaDocumentsProviderAuthority[] = | 18 const char kMediaDocumentsProviderAuthority[] = |
| 19 "com.android.providers.media.documents"; | 19 "com.android.providers.media.documents"; |
| 20 | 20 |
| 21 const char kImagesRootDocumentId[] = "images_root"; | 21 const char kImagesRootDocumentId[] = "images_root"; |
| 22 const char kVideosRootDocumentId[] = "videos_root"; | 22 const char kVideosRootDocumentId[] = "videos_root"; |
| 23 const char kAudioRootDocumentId[] = "audio_root"; | 23 const char kAudioRootDocumentId[] = "audio_root"; |
| 24 | 24 |
| 25 std::string GetMediaViewVolumeId(const std::string& root_document_id) { | 25 std::string GetMediaViewVolumeId(const std::string& root_document_id) { |
| 26 return std::string(kMediaViewVolumeIdPrefix) + root_document_id; | 26 return std::string(kMediaViewVolumeIdPrefix) + root_document_id; |
| 27 } | 27 } |
| 28 | 28 |
| 29 } // namespace arc | 29 } // namespace arc |
| OLD | NEW |