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

Unified Diff: content/renderer/dom_serializer_browsertest.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
« no previous file with comments | « content/child/webblobregistry_impl.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/dom_serializer_browsertest.cc
diff --git a/content/renderer/dom_serializer_browsertest.cc b/content/renderer/dom_serializer_browsertest.cc
index 881e06e108aef535f22eed3e98f4b55340351986..caa4c43083680a1026cec49e4bfff799b3d4b5a4 100644
--- a/content/renderer/dom_serializer_browsertest.cc
+++ b/content/renderer/dom_serializer_browsertest.cc
@@ -34,7 +34,6 @@
#include "third_party/WebKit/public/platform/WebString.h"
#include "third_party/WebKit/public/platform/WebURL.h"
#include "third_party/WebKit/public/platform/WebVector.h"
-#include "webkit/base/file_path_string_conversions.h"
using WebKit::WebCString;
using WebKit::WebData;
@@ -273,8 +272,8 @@ class DomSerializerTests : public ContentBrowserTest,
// Add input file URl to links_.
links_.assign(&page_url,1);
// Add dummy file path to local_path_.
- WebString file_path = webkit_base::FilePathStringToWebString(
- FILE_PATH_LITERAL("c:\\dummy.htm"));
+ WebString file_path =
+ base::FilePath(FILE_PATH_LITERAL("c:\\dummy.htm")).AsUTF16Unsafe();
local_paths_.assign(&file_path, 1);
// Start serializing DOM.
bool result = WebPageSerializer::serialize(web_frame,
@@ -282,7 +281,7 @@ class DomSerializerTests : public ContentBrowserTest,
static_cast<WebPageSerializerClient*>(this),
links_,
local_paths_,
- webkit_base::FilePathToWebString(local_directory_name_));
+ local_directory_name_.AsUTF16Unsafe());
ASSERT_TRUE(result);
ASSERT_TRUE(serialized_);
}
« no previous file with comments | « content/child/webblobregistry_impl.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698