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

Side by Side Diff: chromeos/dbus/cras_audio_client.cc

Issue 91413002: Remove fake client creation from DBusClients' Create() functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chromeos/dbus/cras_audio_client.h ('k') | chromeos/dbus/cryptohome_client.h » ('j') | 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "chromeos/dbus/cras_audio_client.h" 5 #include "chromeos/dbus/cras_audio_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/format_macros.h" 8 #include "base/format_macros.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "chromeos/dbus/cras_audio_client_stub_impl.h" 10 #include "chromeos/dbus/cras_audio_client_stub_impl.h"
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 void CrasAudioClient::Observer::ActiveInputNodeChanged(uint64 node_id) { 394 void CrasAudioClient::Observer::ActiveInputNodeChanged(uint64 node_id) {
395 } 395 }
396 396
397 CrasAudioClient::CrasAudioClient() { 397 CrasAudioClient::CrasAudioClient() {
398 } 398 }
399 399
400 CrasAudioClient::~CrasAudioClient() { 400 CrasAudioClient::~CrasAudioClient() {
401 } 401 }
402 402
403 // static 403 // static
404 CrasAudioClient* CrasAudioClient::Create(DBusClientImplementationType type) { 404 CrasAudioClient* CrasAudioClient::Create() {
405 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION) { 405 return new CrasAudioClientImpl();
406 return new CrasAudioClientImpl();
407 }
408 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type);
409 return new CrasAudioClientStubImpl();
410 } 406 }
411 407
412 } // namespace chromeos 408 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/cras_audio_client.h ('k') | chromeos/dbus/cryptohome_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698