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

Unified Diff: trunk/src/chrome/test/data/extensions/api_test/browser_action/default_persistence/background.js

Issue 189873005: Revert 255588 "Persist browseraction properties across restarts" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 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: trunk/src/chrome/test/data/extensions/api_test/browser_action/default_persistence/background.js
===================================================================
--- trunk/src/chrome/test/data/extensions/api_test/browser_action/default_persistence/background.js (revision 255654)
+++ trunk/src/chrome/test/data/extensions/api_test/browser_action/default_persistence/background.js (working copy)
@@ -1,14 +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.
-
-// Set a background color for the badge at OnInstalled().
-chrome.runtime.onInstalled.addListener(function() {
- chrome.browserAction.setBadgeBackgroundColor({color: [0, 0, 255, 255]});
-});
-
-// Every startup, change the badge text, but not the background color (which
-// should persist at the blue we set originally).
-chrome.runtime.onStartup.addListener(function() {
- chrome.browserAction.setBadgeText({text: 'Hello'});
-});

Powered by Google App Engine
This is Rietveld 408576698