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

Side by Side Diff: chrome/test/data/extensions/api_test/browser_action/default_persistence/background.js

Issue 186013003: Persist browseraction properties across restarts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove reliance on ID 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Set a background color for the badge at OnInstalled().
2 chrome.runtime.onInstalled.addListener(function() {
3 chrome.browserAction.setBadgeBackgroundColor({color: [0, 0, 255, 255]});
4 });
5
6 // Every startup, change the badge text, but not the background color (which
7 // should persist at the blue we set originally).
8 chrome.runtime.onStartup.addListener(function() {
9 chrome.browserAction.setBadgeText({text: 'Hello'});
10 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698