Chromium Code Reviews| Index: chrome/browser/chrome_to_mobile_service.cc |
| diff --git a/chrome/browser/chrome_to_mobile_service.cc b/chrome/browser/chrome_to_mobile_service.cc |
| index 1f9e2f9fb8c0f4f9c66b14473ad0eba460124fcb..f4058fcdd9fc83bb15dea1b1a6a14f024a839095 100644 |
| --- a/chrome/browser/chrome_to_mobile_service.cc |
| +++ b/chrome/browser/chrome_to_mobile_service.cc |
| @@ -45,6 +45,7 @@ |
| #include "google_apis/gaia/oauth2_access_token_fetcher.h" |
| #include "net/base/escape.h" |
| #include "net/base/load_flags.h" |
| +#include "net/base/mime_util.h" |
| #include "net/http/http_status_code.h" |
| #include "net/url_request/url_fetcher.h" |
| #include "net/url_request/url_request_context_getter.h" |
| @@ -137,13 +138,13 @@ std::string GetContentType(ChromeToMobileService::JobType type) { |
| "multipart/related" : "text/plain"; |
| } |
| -// Utility function to call cloud_print::AddMultipartValueForUpload. |
| +// Utility function to call net::AddMultipartValueForUpload. |
| void AddValue(const std::string& value_name, |
| const std::string& value, |
| const std::string& mime_boundary, |
| std::string* post_data) { |
| - cloud_print::AddMultipartValueForUpload(value_name, value, mime_boundary, |
| - std::string(), post_data); |
| + net::AddMultipartValueForUpload(value_name, value, mime_boundary, |
| + std::string(), post_data); |
| } |
| // Append the Chrome To Mobile client query parameter, used by cloud print. |
| @@ -583,7 +584,7 @@ void ChromeToMobileService::SendJobRequest(base::WeakPtr<Observer> observer, |
| AddValue("contentType", GetContentType(data.type), bound, &post); |
| // Add the snapshot or use dummy content to workaround a URL submission error. |
| - cloud_print::AddMultipartValueForUpload("content", |
| + net::AddMultipartValueForUpload("content", |
| data.snapshot_content.empty() ? "content" : data.snapshot_content, |
| bound, "text/mhtml", &post); |
| post.append("--" + bound + "--\r\n"); |
|
wtc
2013/05/14 18:45:29
Optional: For completeness, should we also turn th
Henrik Grunell
2013/05/15 11:49:31
SGTM. Done.
|