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

Unified Diff: chrome/browser/ui/login/login_prompt_browsertest.cc

Issue 6312154: Remove wstring from RVH's run Javascript command.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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/ui/login/login_prompt_browsertest.cc
===================================================================
--- chrome/browser/ui/login/login_prompt_browsertest.cc (revision 73855)
+++ chrome/browser/ui/login/login_prompt_browsertest.cc (working copy)
@@ -6,6 +6,7 @@
#include <list>
#include <map>
+#include "base/utf_string_conversions.h"
#include "chrome/browser/browser_thread.h"
#include "chrome/browser/renderer_host/resource_dispatcher_host.h"
#include "chrome/browser/ui/browser.h"
@@ -56,7 +57,8 @@
EXPECT_TRUE(auth_map_.end() != i);
if (i != auth_map_.end()) {
const AuthInfo& info = i->second;
- handler->SetAuth(info.username_, info.password_);
+ handler->SetAuth(WideToUTF16Hack(info.username_),
+ WideToUTF16Hack(info.password_));
}
}
@@ -364,7 +366,8 @@
LoginHandler* handler = *observer.handlers_.begin();
ASSERT_TRUE(handler);
- handler->SetAuth(bad_username_, bad_password_);
+ handler->SetAuth(WideToUTF16Hack(bad_username_),
+ WideToUTF16Hack(bad_password_));
LOG(INFO) << "Waiting for initial AUTH_SUPPLIED";
auth_supplied_waiter.Wait();

Powered by Google App Engine
This is Rietveld 408576698