OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/extensions/file_manager/file_browser_private_a
pi.h" | 5 #include "chrome/browser/chromeos/extensions/file_manager/file_browser_private_a
pi.h" |
6 | 6 |
7 #include <sys/stat.h> | 7 #include <sys/stat.h> |
8 #include <sys/statvfs.h> | 8 #include <sys/statvfs.h> |
9 #include <sys/types.h> | 9 #include <sys/types.h> |
10 #include <utime.h> | 10 #include <utime.h> |
(...skipping 1643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1654 it != mount_points.end(); | 1654 it != mount_points.end(); |
1655 ++it) { | 1655 ++it) { |
1656 mounts->Append(CreateValueFromMountPoint(profile_, it->second, | 1656 mounts->Append(CreateValueFromMountPoint(profile_, it->second, |
1657 extension_->id(), source_url_)); | 1657 extension_->id(), source_url_)); |
1658 log_string += separator + it->first; | 1658 log_string += separator + it->first; |
1659 separator = ", "; | 1659 separator = ", "; |
1660 } | 1660 } |
1661 | 1661 |
1662 log_string += "]"; | 1662 log_string += "]"; |
1663 | 1663 |
1664 drive::util::Log("%s[%d] succeeded. (results: '%s', %"PRIuS" mount points)", | 1664 drive::util::Log("%s[%d] succeeded. (results: '%s', %" PRIuS " mount points)", |
1665 name().c_str(), | 1665 name().c_str(), |
1666 request_id(), | 1666 request_id(), |
1667 log_string.c_str(), | 1667 log_string.c_str(), |
1668 mount_points.size()); | 1668 mount_points.size()); |
1669 | 1669 |
1670 SendResponse(true); | 1670 SendResponse(true); |
1671 return true; | 1671 return true; |
1672 } | 1672 } |
1673 | 1673 |
1674 SetLastModifiedFunction::SetLastModifiedFunction() { | 1674 SetLastModifiedFunction::SetLastModifiedFunction() { |
(...skipping 1585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3260 const GURL& share_url) { | 3260 const GURL& share_url) { |
3261 if (error != drive::FILE_ERROR_OK) { | 3261 if (error != drive::FILE_ERROR_OK) { |
3262 error_ = "Share Url for this item is not available."; | 3262 error_ = "Share Url for this item is not available."; |
3263 SendResponse(false); | 3263 SendResponse(false); |
3264 return; | 3264 return; |
3265 } | 3265 } |
3266 | 3266 |
3267 SetResult(new base::StringValue(share_url.spec())); | 3267 SetResult(new base::StringValue(share_url.spec())); |
3268 SendResponse(true); | 3268 SendResponse(true); |
3269 } | 3269 } |
OLD | NEW |