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

Issue 591006: Make it so that chrome.bookmarks.update can update the URL of a bookmark.... (Closed)

Created:
10 years, 10 months ago by arv (Not doing code reviews)
Modified:
9 years, 4 months ago
CC:
chromium-reviews, Aaron Boodman, Paweł Hajdan Jr., pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Make it so that chrome.bookmarks.update can update the URL of a bookmark. This changes the API slightly. Previously, if someone called update with an empty object ({}) it would set the title to "". This was only documented in the code and not on the API page. Now that we support updating both the url and title it seems more reasonable to ignore a missing title. BUG=34841 TEST=browser_tests.exe --gtest_filter=ExtensionApiTest.Bookmarks Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=38555

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -18 lines) Patch
M chrome/browser/extensions/extension_bookmarks_module.cc View 1 2 3 chunks +26 lines, -7 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/common/extensions/docs/bookmarks.html View 4 chunks +88 lines, -2 lines 0 comments Download
M chrome/common/extensions/docs/tabs.html View 5 chunks +6 lines, -5 lines 0 comments Download
M chrome/test/data/extensions/api_test/bookmarks/test.js View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
arv (Not doing code reviews)
This one depends on http://codereview.chromium.org/582022/show This changes the API slightly. Previously, if someone called update ...
10 years, 10 months ago (2010-02-08 23:55:24 UTC) #1
rafaelw
I forgot to generate docs for http://codereview.chromium.org/558049 (I'm not sure why the PRESUBMIT didn't warn ...
10 years, 10 months ago (2010-02-09 00:13:56 UTC) #2
Erik does not do reviews
10 years, 10 months ago (2010-02-09 00:15:42 UTC) #3
LGTM

http://codereview.chromium.org/591006/diff/3001/3002
File chrome/browser/extensions/extension_bookmarks_module.cc (right):

http://codereview.chromium.org/591006/diff/3001/3002#newcode647
chrome/browser/extensions/extension_bookmarks_module.cc:647: // Optional but we
need to distinguish non present from an empty title.
nit: newline above comment

http://codereview.chromium.org/591006/diff/3001/3002#newcode654
chrome/browser/extensions/extension_bookmarks_module.cc:654: // If URL is
present then it needs to be a non empty valid URL.
nit: newline above comment

Powered by Google App Engine
This is Rietveld 408576698