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

Issue 8916013: Added storage sample. (Closed)

Created:
9 years ago by Boris Smus
Modified:
9 years ago
CC:
chromium-reviews, jstritar+watch_chromium.org, Aaron Boodman, mihaip+watch_chromium.org
Visibility:
Public.

Description

Added storage sample. BUG=98591 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114531

Patch Set 1 #

Patch Set 2 : Storage sample and built devtools docs changes. #

Total comments: 8

Patch Set 3 : Storage sample #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -10 lines) Patch
A chrome/common/extensions/docs/examples/api/storage/stylizr.zip View 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/common/extensions/docs/examples/api/storage/stylizr/icon.png View 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/common/extensions/docs/examples/api/storage/stylizr/manifest.json View 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/common/extensions/docs/examples/api/storage/stylizr/options.html View 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/common/extensions/docs/examples/api/storage/stylizr/options.js View 1 2 1 chunk +58 lines, -0 lines 0 comments Download
A chrome/common/extensions/docs/examples/api/storage/stylizr/popup.html View 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/common/extensions/docs/examples/api/storage/stylizr/popup.js View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/experimental.devtools.console.html View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/common/extensions/docs/experimental.devtools.network.html View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/common/extensions/docs/experimental.devtools.resources.html View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/common/extensions/docs/experimental.webInspector.audits.html View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/common/extensions/docs/experimental.webInspector.panels.html View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/common/extensions/docs/experimental.webInspector.resources.html View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/common/extensions/docs/samples.html View 1 2 chunks +59 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/samples.json View 1 1 chunk +31 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Boris Smus
Sorry guys, I was horribly out of date. Starting a new review. Ben, Mike LGTM'ed ...
9 years ago (2011-12-14 21:11:50 UTC) #1
not at google - send to devlin
LGTM after those couple of comments http://codereview.chromium.org/8916013/diff/3001/chrome/common/extensions/docs/examples/api/storage/stylizr/options.js File chrome/common/extensions/docs/examples/api/storage/stylizr/options.js (right): http://codereview.chromium.org/8916013/diff/3001/chrome/common/extensions/docs/examples/api/storage/stylizr/options.js#newcode30 chrome/common/extensions/docs/examples/api/storage/stylizr/options.js:30: message('Settings saved'); Should ...
9 years ago (2011-12-14 23:04:13 UTC) #2
not at google - send to devlin
http://codereview.chromium.org/8916013/diff/3001/chrome/common/extensions/docs/examples/api/storage/stylizr/popup.js File chrome/common/extensions/docs/examples/api/storage/stylizr/popup.js (right): http://codereview.chromium.org/8916013/diff/3001/chrome/common/extensions/docs/examples/api/storage/stylizr/popup.js#newcode5 chrome/common/extensions/docs/examples/api/storage/stylizr/popup.js:5: // Store settings in the local, un-synchronized repository. On ...
9 years ago (2011-12-14 23:16:07 UTC) #3
Boris Smus
9 years ago (2011-12-14 23:29:34 UTC) #4
Thanks Ben!

http://codereview.chromium.org/8916013/diff/3001/chrome/common/extensions/doc...
File chrome/common/extensions/docs/examples/api/storage/stylizr/options.js
(right):

http://codereview.chromium.org/8916013/diff/3001/chrome/common/extensions/doc...
chrome/common/extensions/docs/examples/api/storage/stylizr/options.js:30:
message('Settings saved');
On 2011/12/14 23:04:13, kalman wrote:
> Should probably do this in the callback from set().

Done.

http://codereview.chromium.org/8916013/diff/3001/chrome/common/extensions/doc...
File chrome/common/extensions/docs/examples/api/storage/stylizr/popup.js
(right):

http://codereview.chromium.org/8916013/diff/3001/chrome/common/extensions/doc...
chrome/common/extensions/docs/examples/api/storage/stylizr/popup.js:5: // Store
settings in the local, un-synchronized repository.
On 2011/12/14 23:04:13, kalman wrote:
> Why not use the synced storage?
> 
> An interesting feature might be something neat like putting a "sync this CSS"
> option in storage.local, then based on the value of that query use either
local
> or sync for the settings.
> 
> In a follow-up perhaps.

Switched to sync for now. Option could be interesting later.

http://codereview.chromium.org/8916013/diff/3001/chrome/common/extensions/doc...
chrome/common/extensions/docs/examples/api/storage/stylizr/popup.js:18:
message.innerText = 'Injected style!';
On 2011/12/14 23:04:13, kalman wrote:
> shouldn't this be in an else, or a "return" after line 16?

Done.

Powered by Google App Engine
This is Rietveld 408576698