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

Unified Diff: chrome/browser/resources/chromeos/wallpaper_manager/js/mock_chrome.js

Issue 10698099: Implement the new wallpaper manager launcher window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to trunk Created 8 years, 5 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/browser/resources/chromeos/wallpaper_manager/js/mock_chrome.js
diff --git a/chrome/browser/resources/chromeos/wallpaper_manager/js/mock_chrome.js b/chrome/browser/resources/chromeos/wallpaper_manager/js/mock_chrome.js
new file mode 100644
index 0000000000000000000000000000000000000000..3d0ce8a384d66a80d9760ae10d1304195a9d8a95
--- /dev/null
+++ b/chrome/browser/resources/chromeos/wallpaper_manager/js/mock_chrome.js
@@ -0,0 +1,15 @@
+// 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.
+
+/**
+ * Mock the background page functions for use in the harness.
+ */
+document.querySelector('#dialog').contentWindow.chrome.extension = {
+ getBackgroundPage: function() {
flackr 2012/07/09 21:29:58 You no longer use a background page right?
bshe 2012/07/10 01:39:22 Aha. Right. I should remove it. Sorry about it. O
+ return {'windowStateManager': {
+ saveStates: function() {},
+ restoreStates: function() {}
+ }};
+ }
+};

Powered by Google App Engine
This is Rietveld 408576698