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

Unified Diff: athena/content/chrome/media_utils.cc

Issue 863033002: Delete athena/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « athena/content/chrome/dialogs.cc ('k') | athena/content/chrome/web_activity_helpers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/content/chrome/media_utils.cc
diff --git a/athena/content/chrome/media_utils.cc b/athena/content/chrome/media_utils.cc
deleted file mode 100644
index be77697d502fa89229e1d2744d09ed3ad8445c89..0000000000000000000000000000000000000000
--- a/athena/content/chrome/media_utils.cc
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "athena/content/media_utils.h"
-
-#include "athena/activity/public/activity.h"
-#include "chrome/browser/media/media_capture_devices_dispatcher.h"
-#include "chrome/browser/media/media_stream_capture_indicator.h"
-#include "content/browser/media/audio_stream_monitor.h"
-#include "content/public/browser/web_contents.h"
-
-namespace athena {
-
-Activity::ActivityMediaState GetActivityMediaState(
- content::WebContents* contents) {
- // TODO(skuhne): This needs to be refactored and / or moved out of Chrome.
- // See crbug.com/420677.
- scoped_refptr<MediaStreamCaptureIndicator> indicator =
- MediaCaptureDevicesDispatcher::GetInstance()->
- GetMediaStreamCaptureIndicator();
- if (indicator.get() && indicator->IsCapturingUserMedia(contents))
- return Activity::ACTIVITY_MEDIA_STATE_RECORDING;
-
- if (contents->GetCapturerCount())
- return Activity::ACTIVITY_MEDIA_STATE_CAPTURING;
-
- DCHECK(content::AudioStreamMonitor::monitoring_available());
- return contents->WasRecentlyAudible() ?
- Activity::ACTIVITY_MEDIA_STATE_AUDIO_PLAYING :
- Activity::ACTIVITY_MEDIA_STATE_NONE;
-}
-
-} // namespace athena
« no previous file with comments | « athena/content/chrome/dialogs.cc ('k') | athena/content/chrome/web_activity_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698