| Index: chrome/browser/extensions/extension_file_browser_private_api.cc
|
| ===================================================================
|
| --- chrome/browser/extensions/extension_file_browser_private_api.cc (revision 79631)
|
| +++ chrome/browser/extensions/extension_file_browser_private_api.cc (working copy)
|
| @@ -10,6 +10,7 @@
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/common/extensions/extension.h"
|
| #include "content/browser/browser_thread.h"
|
| +#include "googleurl/src/gurl.h"
|
| #include "webkit/fileapi/file_system_operation.h"
|
| #include "webkit/fileapi/file_system_types.h"
|
|
|
| @@ -37,13 +38,13 @@
|
| NOTREACHED();
|
| }
|
| virtual void DidOpenFileSystem(const std::string& name,
|
| - const FilePath& path) OVERRIDE {
|
| + const GURL& root) OVERRIDE {
|
| BrowserThread::PostTask(
|
| BrowserThread::UI, FROM_HERE,
|
| NewRunnableMethod(function_,
|
| &RequestLocalFileSystemFunction::RespondSuccessOnUIThread,
|
| name,
|
| - path));
|
| + root));
|
| }
|
| virtual void DidFail(base::PlatformFileError error_code) OVERRIDE {
|
| BrowserThread::PostTask(
|
| @@ -78,12 +79,12 @@
|
| }
|
|
|
| void RequestLocalFileSystemFunction::RespondSuccessOnUIThread(
|
| - const std::string& name, const FilePath& path) {
|
| + const std::string& name, const GURL& root) {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| result_.reset(new DictionaryValue());
|
| DictionaryValue* dict = reinterpret_cast<DictionaryValue*>(result_.get());
|
| dict->SetString("name", name);
|
| - dict->SetString("path", path.value());
|
| + dict->SetString("path", root.spec());
|
| dict->SetInteger("error", base::PLATFORM_FILE_OK);
|
| SendResponse(true);
|
| }
|
|
|