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

Unified Diff: chrome/browser/media/router/presentation_service_delegate_impl.cc

Issue 2553903002: Changes error code to NotFoundError. (Closed)
Patch Set: Typo. Created 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/router/presentation_service_delegate_impl.cc
diff --git a/chrome/browser/media/router/presentation_service_delegate_impl.cc b/chrome/browser/media/router/presentation_service_delegate_impl.cc
index 15568577e3fdf7ea7c9575db6b32ca18eb0d5690..67d43a3280846e406484955230cfa8b30adb6c65 100644
--- a/chrome/browser/media/router/presentation_service_delegate_impl.cc
+++ b/chrome/browser/media/router/presentation_service_delegate_impl.cc
@@ -788,8 +788,9 @@ void PresentationServiceDelegateImpl::StartSession(
if (presentation_urls.empty() ||
std::find_if_not(presentation_urls.begin(), presentation_urls.end(),
IsValidPresentationUrl) != presentation_urls.end()) {
- error_cb.Run(content::PresentationError(content::PRESENTATION_ERROR_UNKNOWN,
- "Invalid presentation URL."));
+ error_cb.Run(content::PresentationError(
+ content::PRESENTATION_ERROR_NO_PRESENTATION_FOUND,
+ "Invalid presentation URL."));
return;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698