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

Unified Diff: webkit/tools/test_shell/test_shell.cc

Issue 9003013: Remove some wstrings in test_shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | « webkit/tools/test_shell/test_shell.h ('k') | webkit/tools/test_shell/test_shell_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/test_shell.cc
diff --git a/webkit/tools/test_shell/test_shell.cc b/webkit/tools/test_shell/test_shell.cc
index f5142542f0ede7e45e55af447318fa40ac978ef0..311955e37d603492ac41ae2705b605cb91424df0 100644
--- a/webkit/tools/test_shell/test_shell.cc
+++ b/webkit/tools/test_shell/test_shell.cc
@@ -484,20 +484,19 @@ void TestShell::ResetTestController() {
}
void TestShell::LoadFile(const FilePath& file) {
- LoadURLForFrame(net::FilePathToFileURL(file), std::wstring());
+ LoadURLForFrame(net::FilePathToFileURL(file), string16());
}
void TestShell::LoadURL(const GURL& url) {
- LoadURLForFrame(url, std::wstring());
+ LoadURLForFrame(url, string16());
}
bool TestShell::Navigate(const TestNavigationEntry& entry, bool reload) {
// Get the right target frame for the entry.
WebFrame* frame = webView()->mainFrame();
- if (!entry.GetTargetFrame().empty()) {
- frame = webView()->findFrameByName(
- WideToUTF16Hack(entry.GetTargetFrame()));
- }
+ if (!entry.GetTargetFrame().empty())
+ frame = webView()->findFrameByName(entry.GetTargetFrame());
+
// TODO(mpcomplete): should we clear the target frame, or should
// back/forward navigations maintain the target frame?
« no previous file with comments | « webkit/tools/test_shell/test_shell.h ('k') | webkit/tools/test_shell/test_shell_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698