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

Unified Diff: chrome/browser/renderer_host/gtk_key_bindings_handler_unittest.cc

Issue 293013: Deprecate PathService::Get(..., wstring*) and use FilePath instead. (Closed)
Patch Set: Created 11 years, 2 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: chrome/browser/renderer_host/gtk_key_bindings_handler_unittest.cc
diff --git a/chrome/browser/renderer_host/gtk_key_bindings_handler_unittest.cc b/chrome/browser/renderer_host/gtk_key_bindings_handler_unittest.cc
index a6c6753746d7860d95336f0f0c11aa3a53791b3d..0f26e1a42d9b9ee7d53a84cc2bb2ae71f95b9562 100644
--- a/chrome/browser/renderer_host/gtk_key_bindings_handler_unittest.cc
+++ b/chrome/browser/renderer_host/gtk_key_bindings_handler_unittest.cc
@@ -27,10 +27,10 @@ class GtkKeyBindingsHandlerTest : public testing::Test {
GtkKeyBindingsHandlerTest()
: window_(gtk_window_new(GTK_WINDOW_TOPLEVEL)),
handler_(NULL) {
- std::wstring gtkrc;
+ FilePath gtkrc;
PathService::Get(chrome::DIR_TEST_DATA, &gtkrc);
- file_util::AppendToPath(&gtkrc, L"gtk_key_bindings_test_gtkrc");
- gtk_rc_parse(WideToUTF8(gtkrc).c_str());
+ gtkrc = gtkrc.AppendASCII("gtk_key_bindings_test_gtkrc");
+ gtk_rc_parse(gtkrc.value().c_str());
GtkWidget* fixed = gtk_fixed_new();
handler_ = new GtkKeyBindingsHandler(fixed);

Powered by Google App Engine
This is Rietveld 408576698