OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2013 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 "ppapi/shared_impl/file_system_util.h" | |
6 | |
7 #include "base/logging.h" | |
8 | |
9 namespace ppapi { | |
10 | |
11 std::string IsolatedFileSystemTypeToRootName( | |
12 PP_IsolatedFileSystemType_Private type) { | |
13 switch (type) { | |
14 case PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_INVALID: | |
teravest
2013/11/12 18:04:53
Why bother explicitly handling this case?
nhiroki
2013/11/14 11:34:39
It's just my preference ('default' could hide newl
| |
15 break; | |
16 case PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_CRX: | |
17 return "crxfs"; | |
18 case PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_PLUGINPRIVATE: | |
19 return "pluginprivate"; | |
20 } | |
21 NOTREACHED() << type; | |
22 return std::string(); | |
23 } | |
24 | |
25 } // namespace ppapi | |
OLD | NEW |