| 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/file_manager/url_util.h" | 5 #include "chrome/browser/chromeos/file_manager/url_util.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
| 8 #include "base/values.h" | 10 #include "base/values.h" |
| 9 #include "chrome/browser/chromeos/file_manager/app_id.h" | 11 #include "chrome/browser/chromeos/file_manager/app_id.h" |
| 10 #include "net/base/escape.h" | 12 #include "net/base/escape.h" |
| 11 | 13 |
| 12 namespace file_manager { | 14 namespace file_manager { |
| 13 namespace util { | 15 namespace util { |
| 14 namespace { | 16 namespace { |
| 15 | 17 |
| 16 // Returns a file manager URL for the given |path|. | 18 // Returns a file manager URL for the given |path|. |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 base::JSONWriter::Write(arg_value, &json_args); | 116 base::JSONWriter::Write(arg_value, &json_args); |
| 115 | 117 |
| 116 std::string url = GetFileManagerMainPageUrl().spec() + '?' + | 118 std::string url = GetFileManagerMainPageUrl().spec() + '?' + |
| 117 net::EscapeUrlEncodedData(json_args, | 119 net::EscapeUrlEncodedData(json_args, |
| 118 false); // Space to %20 instead of +. | 120 false); // Space to %20 instead of +. |
| 119 return GURL(url); | 121 return GURL(url); |
| 120 } | 122 } |
| 121 | 123 |
| 122 } // namespace util | 124 } // namespace util |
| 123 } // namespace file_manager | 125 } // namespace file_manager |
| OLD | NEW |