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

Unified Diff: content/browser/in_process_webkit/indexed_db_dispatcher_host.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/in_process_webkit/indexed_db_dispatcher_host.cc
diff --git a/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc b/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc
index c3f126e62c9714f39e0fbd9c712734462ed91bc6..94cc927ac76fa3769e0dbc649b97591f2632574e 100644
--- a/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc
+++ b/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc
@@ -8,6 +8,7 @@
#include "base/bind.h"
#include "base/command_line.h"
+#include "base/files/file_path.h"
#include "base/process.h"
#include "base/process_util.h"
#include "base/strings/utf_string_conversions.h"
@@ -28,7 +29,6 @@
#include "third_party/WebKit/public/platform/WebIDBDatabase.h"
#include "third_party/WebKit/public/platform/WebIDBDatabaseError.h"
#include "third_party/WebKit/public/platform/WebIDBDatabaseException.h"
-#include "webkit/base/file_path_string_conversions.h"
#include "webkit/browser/database/database_util.h"
#include "webkit/common/database/database_identifier.h"
@@ -224,7 +224,7 @@ void IndexedDBDispatcherHost::OnIDBFactoryGetDatabaseNames(
new IndexedDBCallbacks<std::vector<string16> >(
this, params.ipc_thread_id, params.ipc_callbacks_id),
WebKit::WebString::fromUTF8(params.database_identifier),
- webkit_base::FilePathToWebString(indexed_db_path));
+ indexed_db_path.AsUTF16Unsafe());
}
void IndexedDBDispatcherHost::OnIDBFactoryOpen(
@@ -254,7 +254,7 @@ void IndexedDBDispatcherHost::OnIDBFactoryOpen(
new IndexedDBDatabaseCallbacks(
this, params.ipc_thread_id, params.ipc_database_callbacks_id),
WebKit::WebString::fromUTF8(params.database_identifier),
- webkit_base::FilePathToWebString(indexed_db_path));
+ indexed_db_path.AsUTF16Unsafe());
}
void IndexedDBDispatcherHost::OnIDBFactoryDeleteDatabase(
@@ -267,7 +267,7 @@ void IndexedDBDispatcherHost::OnIDBFactoryDeleteDatabase(
new IndexedDBCallbacks<std::vector<char> >(
this, params.ipc_thread_id, params.ipc_callbacks_id),
WebKit::WebString::fromUTF8(params.database_identifier),
- webkit_base::FilePathToWebString(indexed_db_path));
+ indexed_db_path.AsUTF16Unsafe());
}
void IndexedDBDispatcherHost::FinishTransaction(int64 host_transaction_id,

Powered by Google App Engine
This is Rietveld 408576698