Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1594)

Unified Diff: content/browser/indexed_db/webidbfactory_impl.cc

Issue 16927005: Use {As,From}UTF16Unsafe instead of file_path_string_conversions.{h,cc}. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/indexed_db/webidbfactory_impl.cc
diff --git a/content/browser/indexed_db/webidbfactory_impl.cc b/content/browser/indexed_db/webidbfactory_impl.cc
index 17f646601466393fd797f0c57de6d2ba225af3ff..faa1d57c0f2ac71622bf0ef8ba17db3b3ab61156 100644
--- a/content/browser/indexed_db/webidbfactory_impl.cc
+++ b/content/browser/indexed_db/webidbfactory_impl.cc
@@ -4,12 +4,12 @@
#include "content/browser/indexed_db/webidbfactory_impl.h"
+#include "base/files/file_path.h"
#include "base/memory/scoped_ptr.h"
#include "content/browser/indexed_db/indexed_db_callbacks_wrapper.h"
#include "content/browser/indexed_db/indexed_db_factory.h"
#include "content/browser/indexed_db/indexed_db_factory.h"
#include "third_party/WebKit/public/platform/WebIDBDatabaseError.h"
-#include "webkit/base/file_path_string_conversions.h"
using WebKit::WebString;
@@ -26,7 +26,7 @@ void WebIDBFactoryImpl::getDatabaseNames(IndexedDBCallbacksBase* callbacks,
idb_factory_backend_->GetDatabaseNames(
IndexedDBCallbacksWrapper::Create(callbacks),
database_identifier,
- webkit_base::WebStringToFilePath(data_dir));
+ base::FilePath::FromUTF16Unsafe(data_dir));
}
void WebIDBFactoryImpl::open(const WebString& name,
@@ -48,7 +48,7 @@ void WebIDBFactoryImpl::open(const WebString& name,
callbacks_proxy.get(),
database_callbacks_proxy.get(),
database_identifier,
- webkit_base::WebStringToFilePath(data_dir));
+ base::FilePath::FromUTF16Unsafe(data_dir));
}
void WebIDBFactoryImpl::deleteDatabase(const WebString& name,
@@ -59,7 +59,7 @@ void WebIDBFactoryImpl::deleteDatabase(const WebString& name,
name,
IndexedDBCallbacksWrapper::Create(callbacks),
database_identifier,
- webkit_base::WebStringToFilePath(data_dir));
+ base::FilePath::FromUTF16Unsafe(data_dir));
}
} // namespace WebKit
« no previous file with comments | « content/browser/indexed_db/indexed_db_internals_ui.cc ('k') | content/child/fileapi/webfilesystem_callback_adapters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698