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

Side by Side Diff: content/public/test/mock_render_process_host.cc

Issue 1383123003: Revert of Fixed the audio backgrounding bug (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « content/public/test/mock_render_process_host.h ('k') | 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/public/test/mock_render_process_host.h" 5 #include "content/public/test/mock_render_process_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 void MockRenderProcessHost::WidgetRestored() { 131 void MockRenderProcessHost::WidgetRestored() {
132 } 132 }
133 133
134 void MockRenderProcessHost::WidgetHidden() { 134 void MockRenderProcessHost::WidgetHidden() {
135 } 135 }
136 136
137 int MockRenderProcessHost::VisibleWidgetCount() const { 137 int MockRenderProcessHost::VisibleWidgetCount() const {
138 return 1; 138 return 1;
139 } 139 }
140 140
141 void MockRenderProcessHost::AudioStateChanged() {}
142
143 bool MockRenderProcessHost::IsForGuestsOnly() const { 141 bool MockRenderProcessHost::IsForGuestsOnly() const {
144 return is_for_guests_only_; 142 return is_for_guests_only_;
145 } 143 }
146 144
147 StoragePartition* MockRenderProcessHost::GetStoragePartition() const { 145 StoragePartition* MockRenderProcessHost::GetStoragePartition() const {
148 return BrowserContext::GetDefaultStoragePartition(browser_context_); 146 return BrowserContext::GetDefaultStoragePartition(browser_context_);
149 } 147 }
150 148
151 void MockRenderProcessHost::AddWord(const base::string16& word) { 149 void MockRenderProcessHost::AddWord(const base::string16& word) {
152 } 150 }
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); 350 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin();
353 it != processes_.end(); ++it) { 351 it != processes_.end(); ++it) {
354 if (*it == host) { 352 if (*it == host) {
355 processes_.weak_erase(it); 353 processes_.weak_erase(it);
356 break; 354 break;
357 } 355 }
358 } 356 }
359 } 357 }
360 358
361 } // namespace content 359 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/mock_render_process_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698