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

Side by Side Diff: content/renderer/media/android/stream_texture_factory_synchronous_impl.cc

Issue 581703002: Fix typo in media context restore (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/media/android/stream_texture_factory_synchronous_impl .h" 5 #include "content/renderer/media/android/stream_texture_factory_synchronous_impl .h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 observer_ = obs; 221 observer_ = obs;
222 if (context_provider_) 222 if (context_provider_)
223 context_provider_->AddObserver(obs); 223 context_provider_->AddObserver(obs);
224 } 224 }
225 225
226 void StreamTextureFactorySynchronousImpl::RemoveObserver( 226 void StreamTextureFactorySynchronousImpl::RemoveObserver(
227 StreamTextureFactoryContextObserver* obs) { 227 StreamTextureFactoryContextObserver* obs) {
228 DCHECK_EQ(observer_, obs); 228 DCHECK_EQ(observer_, obs);
229 observer_ = NULL; 229 observer_ = NULL;
230 if (context_provider_) 230 if (context_provider_)
231 context_provider_->AddObserver(obs); 231 context_provider_->RemoveObserver(obs);
232 } 232 }
233 233
234 } // namespace content 234 } // namespace content
OLDNEW
« 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