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

Unified Diff: content/browser/resources/media/new/util.js

Issue 23769009: Removes the --enable-new-media-internals flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed unused files from old-media-internals Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/resources/media/new/player_info.js ('k') | content/browser/resources/media/player_info.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/resources/media/new/util.js
diff --git a/content/browser/resources/media/new/util.js b/content/browser/resources/media/new/util.js
deleted file mode 100644
index 29cc1b152e3d790cc0cc6e1d6f947eb24399237b..0000000000000000000000000000000000000000
--- a/content/browser/resources/media/new/util.js
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2013 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.
-
-/**
- * @fileoverview Some utility functions that don't belong anywhere else in the
- * code.
- */
-
-var util = (function() {
- var util = {};
- util.object = {};
- /**
- * Calls a function for each element in an object/map/hash.
- *
- * @param obj The object to iterate over.
- * @param f The function to call on every value in the object. F should have
- * the following arguments: f(value, key, object) where value is the value
- * of the property, key is the corresponding key, and obj is the object that
- * was passed in originally.
- * @param optObj The object use as 'this' within f.
- */
- util.object.forEach = function(obj, f, optObj) {
- 'use strict';
- var key;
- for (key in obj) {
- if (obj.hasOwnProperty(key)) {
- f.call(optObj, obj[key], key, obj);
- }
- }
- };
- util.millisecondsToString = function(timeMillis) {
- function pad(num) {
- num = num.toString();
- if (num.length < 2) {
- return '0' + num;
- }
- return num;
- }
-
- var date = new Date(timeMillis);
- return pad(date.getUTCHours()) + ':' + pad(date.getUTCMinutes()) + ':' +
- pad(date.getUTCSeconds()) + ' ' + pad((date.getMilliseconds()) % 1000);
- };
-
- return util;
-}());
« no previous file with comments | « content/browser/resources/media/new/player_info.js ('k') | content/browser/resources/media/player_info.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698