| Index: chrome/common/extensions/docs/examples/extensions/storage_api_devtools/test/content_scripts/1/script.js
|
| ===================================================================
|
| --- chrome/common/extensions/docs/examples/extensions/storage_api_devtools/test/content_scripts/1/script.js (revision 0)
|
| +++ chrome/common/extensions/docs/examples/extensions/storage_api_devtools/test/content_scripts/1/script.js (revision 0)
|
| @@ -0,0 +1,14 @@
|
| +// 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.
|
| +
|
| +chrome.storage.sync.set({test: 'the quick brown fox jumps over the lazy dog.'});
|
| +
|
| +chrome.storage.sync.get('href', function(items) {
|
| + chrome.storage.sync.set({'href': location.href});
|
| +});
|
| +
|
| +chrome.storage.local.get(location.href, function(items) {
|
| + items[location.href] = (items[location.href] || 0) + 1;
|
| + chrome.storage.local.set(items);
|
| +});
|
|
|
| Property changes on: chrome/common/extensions/docs/examples/extensions/storage_api_devtools/test/content_scripts/1/script.js
|
| ___________________________________________________________________
|
| Added: svn:eol-style
|
| + LF
|
| Added: svn:mime-type
|
| + text/javascript
|
|
|
|
|