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

Issue 9420041: Default parentId for bookmarks.create() (Closed)

Created:
8 years, 10 months ago by cduvall
Modified:
8 years, 9 months ago
CC:
chromium-reviews, chris hebert , clark duvall , clinton staley , devlin cronin , matthew tytel , mitchell rosen , eriq augustine
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Default parentId for bookmarks.create() Made the parentId argument for bookmarks.create() optional. The default is the "Other Bookmarks" folder. BUG=21410 TEST=Some of the bookmarks tests have been reported as flaky, so you will need to change "DISABLED_Bookmarks" to "Bookmarks" in chrome/browser/bookmarks/bookmark_extension_apitest.cc to run my test. My test is called createNoParentId. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124812

Patch Set 1 #

Total comments: 6

Patch Set 2 : Small changes that Devlin suggested. #

Total comments: 2

Patch Set 3 : Testcase now does not edit expected children. #

Total comments: 2

Patch Set 4 : Added description of what parentId will default to. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -2 lines) Patch
M chrome/common/extensions/api/bookmarks.json View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/bookmarks/test.js View 1 2 2 chunks +19 lines, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
cduvall
Just sending out my first CL for you guys to check out.
8 years, 10 months ago (2012-02-17 06:16:41 UTC) #1
Devlin
https://chromiumcodereview.appspot.com/9420041/diff/1/chrome/test/data/extensions/api_test/bookmarks/test.js File chrome/test/data/extensions/api_test/bookmarks/test.js (right): https://chromiumcodereview.appspot.com/9420041/diff/1/chrome/test/data/extensions/api_test/bookmarks/test.js#newcode1 chrome/test/data/extensions/api_test/bookmarks/test.js:1: // Copyright (c) 2011 The Chromium Authors. All rights ...
8 years, 10 months ago (2012-02-17 06:45:46 UTC) #2
cduvall
https://chromiumcodereview.appspot.com/9420041/diff/1/chrome/test/data/extensions/api_test/bookmarks/test.js File chrome/test/data/extensions/api_test/bookmarks/test.js (right): https://chromiumcodereview.appspot.com/9420041/diff/1/chrome/test/data/extensions/api_test/bookmarks/test.js#newcode1 chrome/test/data/extensions/api_test/bookmarks/test.js:1: // Copyright (c) 2011 The Chromium Authors. All rights ...
8 years, 10 months ago (2012-02-17 07:01:34 UTC) #3
Matt Tytel
https://chromiumcodereview.appspot.com/9420041/diff/4001/chrome/test/data/extensions/api_test/bookmarks/test.js File chrome/test/data/extensions/api_test/bookmarks/test.js (right): https://chromiumcodereview.appspot.com/9420041/diff/4001/chrome/test/data/extensions/api_test/bookmarks/test.js#newcode186 chrome/test/data/extensions/api_test/bookmarks/test.js:186: expected[0].children[0].children.push(node); You pushed here to expected[0].children[0].children but you didn't ...
8 years, 10 months ago (2012-02-22 00:43:32 UTC) #4
cduvall
https://chromiumcodereview.appspot.com/9420041/diff/4001/chrome/test/data/extensions/api_test/bookmarks/test.js File chrome/test/data/extensions/api_test/bookmarks/test.js (right): https://chromiumcodereview.appspot.com/9420041/diff/4001/chrome/test/data/extensions/api_test/bookmarks/test.js#newcode186 chrome/test/data/extensions/api_test/bookmarks/test.js:186: expected[0].children[0].children.push(node); On 2012/02/22 00:43:32, mtytel wrote: > You pushed ...
8 years, 10 months ago (2012-02-22 01:11:48 UTC) #5
Matt Tytel
lgtm
8 years, 10 months ago (2012-02-22 02:10:43 UTC) #6
cduvall
Small bug, should be quick.
8 years, 10 months ago (2012-02-24 00:34:09 UTC) #7
clintstaley
LGTM
8 years, 10 months ago (2012-02-24 02:16:58 UTC) #8
cduvall
Thanks for your time.
8 years, 9 months ago (2012-02-29 02:13:37 UTC) #9
Aaron Boodman
So are you saying that the C++ already handles this case?
8 years, 9 months ago (2012-02-29 20:56:41 UTC) #10
Aaron Boodman
http://codereview.chromium.org/9420041/diff/6002/chrome/common/extensions/api/bookmarks.json File chrome/common/extensions/api/bookmarks.json (right): http://codereview.chromium.org/9420041/diff/6002/chrome/common/extensions/api/bookmarks.json#newcode136 chrome/common/extensions/api/bookmarks.json:136: "parentId": {"type": "string", "optional": true}, Can you add a ...
8 years, 9 months ago (2012-02-29 20:56:47 UTC) #11
cduvall
On 2012/02/29 20:56:41, Aaron Boodman wrote: > So are you saying that the C++ already ...
8 years, 9 months ago (2012-03-02 01:31:06 UTC) #12
cduvall
http://codereview.chromium.org/9420041/diff/6002/chrome/common/extensions/api/bookmarks.json File chrome/common/extensions/api/bookmarks.json (right): http://codereview.chromium.org/9420041/diff/6002/chrome/common/extensions/api/bookmarks.json#newcode136 chrome/common/extensions/api/bookmarks.json:136: "parentId": {"type": "string", "optional": true}, On 2012/02/29 20:56:48, Aaron ...
8 years, 9 months ago (2012-03-02 01:31:25 UTC) #13
clintstaley
LGTM
8 years, 9 months ago (2012-03-02 05:35:41 UTC) #14
Aaron Boodman
LGTM too
8 years, 9 months ago (2012-03-02 23:14:34 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/9420041/16001
8 years, 9 months ago (2012-03-02 23:18:08 UTC) #16
commit-bot: I haz the power
8 years, 9 months ago (2012-03-03 01:34:36 UTC) #17
Change committed as 124812

Powered by Google App Engine
This is Rietveld 408576698