1 // Copyright (c) 2014 Intel Corporation. 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.
5 #include "xwalk/experimental/native_file_system/virtual_root_provider.h"
7 #include <tzplatform_config.h>
12 VirtualRootProvider::VirtualRootProvider() {
13 const char* names[] = {
21 tzplatform_variable dirs[] = {
29 for (unsigned int i = 0; i < sizeof(names) / sizeof(names[0]); ++i) {
30 virtual_root_map_[names[i]] =
31 base::FilePath::FromUTF8Unsafe(
32 std::string(tzplatform_getenv(dirs[i])));
35 virtual_root_map_["RINGTONES"] =
36 base::FilePath::FromUTF8Unsafe(
37 std::string(tzplatform_mkpath(TZ_USER_SHARE, "settings/Ringtones")));