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

Issue 22560003: Reland "Add option to import from bookmarks html file to ..."" (Closed)

Created:
7 years, 4 months ago by tfarina
Modified:
7 years, 3 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, arv+watch_chromium.org
Visibility:
Public.

Description

Reland "Add option to import from bookmarks html file to ..."" This patch relands crrev.com/216860 with the fix for the first run tests. To test this new feature one can do the following: On chrome, open the "Import Bookmarks and Settings..." dialog, you can do this by three ways, one is to navigate to chrome://settings/importData, another is to open chrome://settings (either through wrench menu or navigating to it through omnibox) and then under the Users category click on "Import Bookmarks..." button to open the dialog. The third way to open this dialog is Wrench->Bookmarks->Import Bookmarks and Settings...". Once the dialog is opened, open the "From" combobox and select "Bookmarks HTML File" item. That should show only the "Favorites/Bookmarks" checkbox checked and enabled and present a "Choose file" button in the place where "Import" button was. Click on that new button and select your bookmarks html file, once you do that the import process should start, and if you file is ok, chrome should import and present you with a success message. BUG=80685 TBR=dbeam@chromium.org, isherman@chromium.org, cpu@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216947

Patch Set 1 #

Patch Set 2 : does this fix first run browser_tests for bots? #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -5 lines) Patch
M chrome/app/generated_resources.grd View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/first_run/first_run_browsertest.cc View 1 1 chunk +1 line, -1 line 1 comment Download
M chrome/browser/importer/importer_list.cc View 1 chunk +6 lines, -0 lines 1 comment Download
M chrome/browser/resources/options/import_data_overlay.html View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/import_data_overlay.js View 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/import_data_handler.h View 5 chunks +14 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/import_data_handler.cc View 5 chunks +56 lines, -2 lines 8 comments Download

Messages

Total messages: 9 (0 generated)
tfarina
I can't reproduce the failure that happened on the bots with either without the patch, ...
7 years, 4 months ago (2013-08-10 18:43:30 UTC) #1
tfarina
Stupid trybot! It is skipping browser_tests on linux_rel.
7 years, 4 months ago (2013-08-10 19:00:26 UTC) #2
tfarina
FirstRunMasterPrefsImportDefault.* seems to have passed at least on mac_rel:swarm_triggered I'll wait for more bots to ...
7 years, 4 months ago (2013-08-10 19:19:16 UTC) #3
tfarina
On 2013/08/10 19:19:16, tfarina wrote: > FirstRunMasterPrefsImportDefault.* seems to have passed at least on > ...
7 years, 4 months ago (2013-08-10 21:56:02 UTC) #4
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
7 years, 4 months ago (2013-08-10 21:56:13 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tfarina@chromium.org/22560003/3001
7 years, 4 months ago (2013-08-10 21:57:21 UTC) #6
commit-bot: I haz the power
Change committed as 216947
7 years, 4 months ago (2013-08-12 06:01:14 UTC) #7
gab
I just noticed this code, I like the idea behind it, but it's incorrect as-is, ...
7 years, 3 months ago (2013-09-17 22:06:00 UTC) #8
gab
7 years, 3 months ago (2013-09-17 22:52:19 UTC) #9
Message was sent while issue was closed.
FYI, took some of these nits on as part of fixing a crash; only thing remaining
here I think is to fix AutoImport (see previous comment).

Cheers,
Gab

https://chromiumcodereview.appspot.com/22560003/diff/3001/chrome/browser/ui/w...
File chrome/browser/ui/webui/options/import_data_handler.cc (right):

https://chromiumcodereview.appspot.com/22560003/diff/3001/chrome/browser/ui/w...
chrome/browser/ui/webui/options/import_data_handler.cc:193: importer_host_ =
NULL;
On 2013/09/17 22:06:00, gab wrote:
> I just realized that the same ImportDataHandler lives throughout the lifetime
of
> the browser process; thus it's not impossible for a second import request to
be
> made before the first one ended.
> 
> We should make sure to do:
> if (importer_host_)
>   importer_host_->set_observer(NULL);
> 
> before creating a new importer host.

Handling this myself in https://codereview.chromium.org/24195005/

https://chromiumcodereview.appspot.com/22560003/diff/3001/chrome/browser/ui/w...
chrome/browser/ui/webui/options/import_data_handler.cc:206: int index,
On 2013/09/17 22:06:00, gab wrote:
> Comment out unused parameter, i.e.:
> int /* index *,

Handling this myself in https://codereview.chromium.org/24195005/

https://chromiumcodereview.appspot.com/22560003/diff/3001/chrome/browser/ui/w...
chrome/browser/ui/webui/options/import_data_handler.cc:207: void* params) {
On 2013/09/17 22:06:00, gab wrote:
> Same for this parameter.

Handling this myself in https://codereview.chromium.org/24195005/

https://chromiumcodereview.appspot.com/22560003/diff/3001/chrome/browser/ui/w...
chrome/browser/ui/webui/options/import_data_handler.cc:213: importer_host_ = new
ExternalProcessImporterHost();
On 2013/09/17 22:06:00, gab wrote:
> Move 213-223 in a common method used by both this method and ImportData().

Handling this myself in https://codereview.chromium.org/24195005/

Powered by Google App Engine
This is Rietveld 408576698