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

Issue 661019: Add command line option to use a tabbed bookmark manager (Closed)

Created:
10 years, 10 months ago by arv (Not doing code reviews)
Modified:
9 years, 3 months ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Add command line option to use a tabbed bookmark manager. Start with --enable-tabbed-bookmark-manager. This will show chrome://bookmarks in a tab instead of the old bookmark manager. However, to get the bookmark manager extension to show you need to use --load-extension=path_to_extension. The extension uses the chrome_url_override to show the extension instead of the bookmark manager. BUG=4890 TEST=See description Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=40468

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 14

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -15 lines) Patch
M chrome/app/theme/theme_resources.grd View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/browser.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/browser.cc View 1 2 3 2 chunks +11 lines, -1 line 0 comments Download
A chrome/browser/dom_ui/bookmarks_ui.h View 1 2 1 chunk +46 lines, -0 lines 0 comments Download
A chrome/browser/dom_ui/bookmarks_ui.cc View 1 2 1 chunk +57 lines, -0 lines 0 comments Download
M chrome/browser/dom_ui/dom_ui_factory.cc View 1 2 3 4 3 chunks +12 lines, -10 lines 0 comments Download
M chrome/browser/extensions/extension_dom_ui.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extension_dom_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/bookmark_manager/manifest.json View 2 3 1 chunk +4 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/common/url_constants.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
arv (Not doing code reviews)
I'll have to submit the images separately but I'll split this after the reviews.
10 years, 10 months ago (2010-02-24 22:35:19 UTC) #1
Aaron Boodman
http://codereview.chromium.org/661019/diff/40/47 File chrome/browser/dom_ui/bookmarks_ui.cc (right): http://codereview.chromium.org/661019/diff/40/47#newcode31 chrome/browser/dom_ui/bookmarks_ui.cc:31: static const base::StringPiece bookmarks_html( I think there is no ...
10 years, 10 months ago (2010-02-26 06:35:43 UTC) #2
arv (Not doing code reviews)
http://codereview.chromium.org/661019/diff/40/47 File chrome/browser/dom_ui/bookmarks_ui.cc (right): http://codereview.chromium.org/661019/diff/40/47#newcode31 chrome/browser/dom_ui/bookmarks_ui.cc:31: static const base::StringPiece bookmarks_html( On 2010/02/26 06:35:43, Aaron Boodman ...
10 years, 10 months ago (2010-02-26 20:26:51 UTC) #3
Aaron Boodman
lgtm http://codereview.chromium.org/661019/diff/40/48 File chrome/browser/dom_ui/bookmarks_ui.h (right): http://codereview.chromium.org/661019/diff/40/48#newcode25 chrome/browser/dom_ui/bookmarks_ui.h:25: virtual std::string GetMimeType(const std::string&) const { On 2010/02/26 ...
10 years, 9 months ago (2010-03-02 18:35:05 UTC) #4
arv (Not doing code reviews)
http://codereview.chromium.org/661019/diff/40/48 File chrome/browser/dom_ui/bookmarks_ui.h (right): http://codereview.chromium.org/661019/diff/40/48#newcode25 chrome/browser/dom_ui/bookmarks_ui.h:25: virtual std::string GetMimeType(const std::string&) const { On 2010/03/02 18:35:05, ...
10 years, 9 months ago (2010-03-02 20:13:54 UTC) #5
feldstein
10 years, 9 months ago (2010-03-02 20:54:10 UTC) #6
LGTM

On 2010/03/02 20:13:54, arv wrote:
> http://codereview.chromium.org/661019/diff/40/48
> File chrome/browser/dom_ui/bookmarks_ui.h (right):
> 
> http://codereview.chromium.org/661019/diff/40/48#newcode25
> chrome/browser/dom_ui/bookmarks_ui.h:25: virtual std::string GetMimeType(const
> std::string&) const {
> On 2010/03/02 18:35:05, Aaron Boodman wrote:
> > On 2010/02/26 20:26:51, arv wrote:
> > > On 2010/02/26 06:35:43, Aaron Boodman wrote:
> > > > Seems worthwhile to check the path is what you're expecting.
> > > 
> > > I'm not sure it is worth it. I would have to strip #... and ?... (hash
> params
> > > are being used).
> > 
> > GURL can do that for you quite easily, but whatevs. Will leave it to you.
> 
> I changed this to a NOTREACHED() as well since we should not be hitting this
> either.
> 
> http://codereview.chromium.org/661019/diff/40/52
> File chrome/common/extensions/extension.cc (right):
> 
> http://codereview.chromium.org/661019/diff/40/52#newcode69
> chrome/common/extensions/extension.cc:69: // experimental APIs.
> On 2010/03/02 18:35:05, Aaron Boodman wrote:
> > On 2010/02/26 20:26:51, arv wrote:
> > > On 2010/02/26 06:35:43, Aaron Boodman wrote:
> > > > I think the place to do this is in ExtensionFunctionDispatcher where the
> > > > functions are dispatched. You can just skip the experimental ones if
> > > > kEnableExperimentalExtensinApis is not present or the extension being
> > > dispatched
> > > > from is not the bookmark manager.
> > > 
> > > The main issue at the moment is that there is no way to test if an
extension
> > is
> > > the bookmark manager.
> > > 
> > > I think the best way would be to flag an extension as "internal" and then
> move
> > > chrome.experimental.bookmarkManager to chrome.internal.bookmarkManager and
> > then
> > > let all "internal" extension have access to the "internal" API permission.
> > 
> > I'm afraid of having multiple special classes of extension APIs. Let's leave
> it
> > experimental, but otherwise do your suggestion. I can add it to my change I
> > think.
> 
> After your CL is in we can remove "experimental" from the BMM manifest and
> update EFD to handle the BMM. I'll file a bug.

Powered by Google App Engine
This is Rietveld 408576698