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

Unified Diff: chrome/common/extensions/docs/examples/apps/cycler/cycler_data.js

Issue 21854002: Remove experimental.record api completely (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch Created 7 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
Index: chrome/common/extensions/docs/examples/apps/cycler/cycler_data.js
diff --git a/chrome/common/extensions/docs/examples/apps/cycler/cycler_data.js b/chrome/common/extensions/docs/examples/apps/cycler/cycler_data.js
deleted file mode 100644
index 2feda45ca1e61006599bd8587bc903e6c050e4bb..0000000000000000000000000000000000000000
--- a/chrome/common/extensions/docs/examples/apps/cycler/cycler_data.js
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) 2012 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.
-
-var CyclerData = function () {
- this.currentCaptures_ = ['alpha', 'beta', 'gamma'];
-
- /**
- * Mark a capture as saved successfully. Actual writing of the cache
- * directory and URL list into the FileSystem is done from the C++ side.
- * JS side just updates the capture choices.
- * @param {!string} name The name of the capture.
- * TODO(cstaley): Implement actual addition of new capture data
- */
- this.saveCapture = function(name) {
- console.log('Saving capture ' + name);
- this.currentCaptures_.push(name);
- }
-
- /**
- * Return a list of currently stored captures in the local FileSystem.
- * @return {Array.<!string>} Names of all the current captures.
- * TODO(cstaley): Implement actual generation of current capture list via
- * ls-like traversal of the extension's FileSystem.
- */
- this.getCaptures = function() {
- return this.currentCaptures_;
- }
-
- /**
- * Delete capture |name| from the local FileSystem, and update the
- * capture choices HTML select element.
- * @param {!string} name The name of the capture to delete.
- * TODO(cstaley): Implement actual deletion
- */
- this.deleteCapture = function(name) {
- this.currentCaptures_.splice(this.currentCaptures_.indexOf(name), 1);
- }
-};

Powered by Google App Engine
This is Rietveld 408576698