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

Unified Diff: chrome/browser/media/media_internals.cc

Issue 7649006: more changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix another typo Created 9 years, 4 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 | « chrome/browser/history/top_sites.cc ('k') | chrome/browser/media/media_internals_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/media_internals.cc
diff --git a/chrome/browser/media/media_internals.cc b/chrome/browser/media/media_internals.cc
index bec8ec852719b921a2b698668839cec480eb364f..b360cbccb34e5fe73bc53f7f9b5f2795433609d4 100644
--- a/chrome/browser/media/media_internals.cc
+++ b/chrome/browser/media/media_internals.cc
@@ -32,21 +32,21 @@ void MediaInternals::OnSetAudioStreamPlaying(
void* host, int stream_id, bool playing) {
DCHECK(CalledOnValidThread());
UpdateAudioStream(host, stream_id,
- "playing", Value::CreateBooleanValue(playing));
+ "playing", base::BooleanValue::New(playing));
}
void MediaInternals::OnSetAudioStreamStatus(
void* host, int stream_id, const std::string& status) {
DCHECK(CalledOnValidThread());
UpdateAudioStream(host, stream_id,
- "status", Value::CreateStringValue(status));
+ "status", base::StringValue::New(status));
}
void MediaInternals::OnSetAudioStreamVolume(
void* host, int stream_id, double volume) {
DCHECK(CalledOnValidThread());
UpdateAudioStream(host, stream_id,
- "volume", Value::CreateDoubleValue(volume));
+ "volume", base::NumberValue::New(volume));
}
void MediaInternals::OnMediaEvent(
@@ -89,7 +89,7 @@ void MediaInternals::UpdateAudioStream(
void MediaInternals::DeleteItem(const std::string& item) {
data_.Remove(item, NULL);
- scoped_ptr<Value> value(Value::CreateStringValue(item));
+ scoped_ptr<Value> value(base::StringValue::New(item));
SendUpdate(kDeleteItemFunction, value.get());
}
« no previous file with comments | « chrome/browser/history/top_sites.cc ('k') | chrome/browser/media/media_internals_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698