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

Unified Diff: content/browser/android/web_contents_observer_proxy.h

Issue 2300083002: Wrap MediaMetadata in base::Optional in content and chrome (Closed)
Patch Set: addressed Mounir's comments Created 4 years, 3 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: content/browser/android/web_contents_observer_proxy.h
diff --git a/content/browser/android/web_contents_observer_proxy.h b/content/browser/android/web_contents_observer_proxy.h
index af0895dc6693f3ea23fdda5d44268333e38b0639..8888f538dbcfd5c143395318e9b7ec39d1fec316 100644
--- a/content/browser/android/web_contents_observer_proxy.h
+++ b/content/browser/android/web_contents_observer_proxy.h
@@ -72,9 +72,10 @@ class WebContentsObserverProxy : public WebContentsObserver {
void DidStartNavigationToPendingEntry(
const GURL& url,
NavigationController::ReloadType reload_type) override;
- void MediaSessionStateChanged(bool is_controllable,
- bool is_suspended,
- const MediaMetadata& metadata) override;
+ void MediaSessionStateChanged(
+ bool is_controllable,
+ bool is_suspended,
+ const base::Optional<MediaMetadata>& metadata) override;
dcheng 2016/09/06 21:11:16 The documentation for base::Optional specifically
mlamouri (slow - plz ping) 2016/09/07 08:55:53 FWIW, the gist of this recommendation is to avoid
Zhiqiang Zhang (Slow) 2016/09/07 10:45:06 I think passing `const base::Optional<T>&` is OK.
void SetToBaseURLForDataURLIfNeeded(std::string* url);
void DidFailLoadInternal(bool is_provisional_load,

Powered by Google App Engine
This is Rietveld 408576698