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

Issue 495853002: Atomic UserScript ID generation (Closed)

Created:
6 years, 4 months ago by Mark Dittmer
Modified:
6 years, 4 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, not at google - send to devlin, Jeffrey Yasskin
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Atomic UserScript ID generation BUG=377978 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=291489

Patch Set 1 #

Total comments: 8

Patch Set 2 : Moved to UserScript, int64 -> int #

Patch Set 3 : More UserScript IDs: int64 -> int #

Total comments: 2

Patch Set 4 : Added comment to address nit #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -15 lines) Patch
M chrome/browser/extensions/user_script_loader.cc View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/common/extensions/manifest_handlers/content_scripts_handler.cc View 1 2 chunks +1 line, -4 lines 0 comments Download
M chrome/common/extensions/manifest_handlers/content_scripts_manifest_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M extensions/common/user_script.h View 1 3 chunks +5 lines, -3 lines 0 comments Download
M extensions/common/user_script.cc View 1 2 3 5 chunks +13 lines, -2 lines 0 comments Download
M extensions/renderer/user_script_injector.h View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
Mark Dittmer
Hey Devlin, the correct operation of two upcoming (much larger) CLs depend on this change ...
6 years, 4 months ago (2014-08-21 01:29:09 UTC) #1
not at google - send to devlin
Devlin has gone home https://codereview.chromium.org/495853002/diff/1/chrome/common/extensions/manifest_handlers/content_scripts_handler.h File chrome/common/extensions/manifest_handlers/content_scripts_handler.h (right): https://codereview.chromium.org/495853002/diff/1/chrome/common/extensions/manifest_handlers/content_scripts_handler.h#newcode43 chrome/common/extensions/manifest_handlers/content_scripts_handler.h:43: static int64 GetNextUserScriptID(); GenerateUserScriptID()? This ...
6 years, 4 months ago (2014-08-21 01:39:32 UTC) #2
Devlin
https://codereview.chromium.org/495853002/diff/1/chrome/common/extensions/manifest_handlers/content_scripts_handler.cc File chrome/common/extensions/manifest_handlers/content_scripts_handler.cc (right): https://codereview.chromium.org/495853002/diff/1/chrome/common/extensions/manifest_handlers/content_scripts_handler.cc#newcode37 chrome/common/extensions/manifest_handlers/content_scripts_handler.cc:37: base::StaticAtomicSequenceNumber g_user_script_id_generator; This seems... overarchitected. Any advantage over the ...
6 years, 4 months ago (2014-08-21 15:27:48 UTC) #3
Mark Dittmer
Moved counter to UserScript and changed UserScript ID type to "int" (was int64). This required ...
6 years, 4 months ago (2014-08-21 19:45:41 UTC) #4
Devlin
https://codereview.chromium.org/495853002/diff/1/chrome/common/extensions/manifest_handlers/content_scripts_handler.cc File chrome/common/extensions/manifest_handlers/content_scripts_handler.cc (right): https://codereview.chromium.org/495853002/diff/1/chrome/common/extensions/manifest_handlers/content_scripts_handler.cc#newcode401 chrome/common/extensions/manifest_handlers/content_scripts_handler.cc:401: int64 ContentScriptsHandler::GetNextUserScriptID() { On 2014/08/21 19:45:41, Mark Dittmer wrote: ...
6 years, 4 months ago (2014-08-21 20:10:20 UTC) #5
Mark Dittmer
int64 -> int already done. https://codereview.chromium.org/495853002/diff/1/chrome/common/extensions/manifest_handlers/content_scripts_handler.cc File chrome/common/extensions/manifest_handlers/content_scripts_handler.cc (right): https://codereview.chromium.org/495853002/diff/1/chrome/common/extensions/manifest_handlers/content_scripts_handler.cc#newcode401 chrome/common/extensions/manifest_handlers/content_scripts_handler.cc:401: int64 ContentScriptsHandler::GetNextUserScriptID() { On ...
6 years, 4 months ago (2014-08-21 21:12:29 UTC) #6
Devlin
https://codereview.chromium.org/495853002/diff/1/chrome/common/extensions/manifest_handlers/content_scripts_handler.cc File chrome/common/extensions/manifest_handlers/content_scripts_handler.cc (right): https://codereview.chromium.org/495853002/diff/1/chrome/common/extensions/manifest_handlers/content_scripts_handler.cc#newcode401 chrome/common/extensions/manifest_handlers/content_scripts_handler.cc:401: int64 ContentScriptsHandler::GetNextUserScriptID() { On 2014/08/21 21:12:29, Mark Dittmer wrote: ...
6 years, 4 months ago (2014-08-21 21:24:23 UTC) #7
Devlin
lgtm https://codereview.chromium.org/495853002/diff/40001/extensions/common/user_script.cc File extensions/common/user_script.cc (right): https://codereview.chromium.org/495853002/diff/40001/extensions/common/user_script.cc#newcode15 extensions/common/user_script.cc:15: base::StaticAtomicSequenceNumber g_user_script_id_generator; nit: maybe a comment on why ...
6 years, 4 months ago (2014-08-22 18:24:21 UTC) #8
Mark Dittmer
Addressed nit. https://codereview.chromium.org/495853002/diff/40001/extensions/common/user_script.cc File extensions/common/user_script.cc (right): https://codereview.chromium.org/495853002/diff/40001/extensions/common/user_script.cc#newcode15 extensions/common/user_script.cc:15: base::StaticAtomicSequenceNumber g_user_script_id_generator; On 2014/08/22 18:24:21, Devlin wrote: ...
6 years, 4 months ago (2014-08-22 18:28:56 UTC) #9
Mark Dittmer
The CQ bit was checked by markdittmer@chromium.org
6 years, 4 months ago (2014-08-22 18:37:28 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/markdittmer@chromium.org/495853002/80001
6 years, 4 months ago (2014-08-22 18:38:26 UTC) #11
commit-bot: I haz the power
6 years, 4 months ago (2014-08-22 20:04:49 UTC) #12
Message was sent while issue was closed.
Committed patchset #5 (80001) as 291489

Powered by Google App Engine
This is Rietveld 408576698