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

Unified Diff: chrome/browser/automation/url_request_mock_http_job.cc

Issue 6268: Port some more parts of browser/... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 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/automation/url_request_mock_http_job.cc
===================================================================
--- chrome/browser/automation/url_request_mock_http_job.cc (revision 3500)
+++ chrome/browser/automation/url_request_mock_http_job.cc (working copy)
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <windows.h>
-
#include "chrome/browser/automation/url_request_mock_http_job.h"
#include "base/file_util.h"
@@ -34,7 +32,7 @@
// Convert the file:/// URL to a path on disk.
std::wstring file_path;
- net::FileURLToFilePath(GURL(file_url), &file_path);
+ net::FileURLToFilePath(GURL(WideToUTF8(file_url)), &file_path);
URLRequestMockHTTPJob* job = new URLRequestMockHTTPJob(request);
job->file_path_ = file_path;
return job;
@@ -52,10 +50,10 @@
/* static */
GURL URLRequestMockHTTPJob::GetMockUrl(const std::wstring& path) {
- std::wstring url = L"http://";
- url.append(UTF8ToWide(kMockHostname));
- url.append(L"/");
- url.append(path);
+ std::string url = "http://";
+ url.append(kMockHostname);
+ url.append("/");
+ url.append(WideToUTF8(path));
return GURL(url);
}
« no previous file with comments | « chrome/browser/automation/url_request_failed_dns_job.cc ('k') | chrome/browser/automation/url_request_mock_net_error_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698