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

Issue 12094026: Skip a first-run import on Mac when there is nothing left to import. (Closed)

Created:
7 years, 10 months ago by tapted
Modified:
7 years, 10 months ago
Reviewers:
cpu_(ooo_6.6-7.5)
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Skip a first-run import on Mac when there is nothing left to import. This can happen if (e.g.) master_preferences filters out all things available to import (e.g.) from Safari. The import process on mac still starts, but has nothing to import. This causes it to hang, because the Import_Finished IPC is hooked onto the last item (not on NotifyEnded). This change also adds a regression test. BUG=169984 TEST=Added browser_test:FirstRunMasterPrefsBrowserTest.ImportNothingAndShowNewTabPage Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=180039

Patch Set 1 : Try out the regression test without the fix #

Patch Set 2 : Now, fix it :) #

Total comments: 4

Patch Set 3 : delete temporary file #

Patch Set 4 : remove fragile check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -4 lines) Patch
M chrome/browser/first_run/first_run.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/first_run/first_run.cc View 3 chunks +13 lines, -3 lines 0 comments Download
M chrome/browser/first_run/first_run_browsertest.cc View 1 2 3 2 chunks +55 lines, -0 lines 0 comments Download
M chrome/browser/first_run/first_run_posix.cc View 1 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
tapted
cpu: can you please take a look for review and OWNERS. The fix itself is ...
7 years, 10 months ago (2013-01-30 11:25:57 UTC) #1
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/12094026/diff/1002/chrome/browser/first_run/first_run_browsertest.cc File chrome/browser/first_run/first_run_browsertest.cc (right): https://codereview.chromium.org/12094026/diff/1002/chrome/browser/first_run/first_run_browsertest.cc#newcode96 chrome/browser/first_run/first_run_browsertest.cc:96: ASSERT_TRUE(file_util::CreateTemporaryFile(&prefs_file)); who deletes this temporary file? https://codereview.chromium.org/12094026/diff/1002/chrome/browser/first_run/first_run_browsertest.cc#newcode135 chrome/browser/first_run/first_run_browsertest.cc:135: // ...
7 years, 10 months ago (2013-01-30 21:00:53 UTC) #2
tapted
https://codereview.chromium.org/12094026/diff/1002/chrome/browser/first_run/first_run_browsertest.cc File chrome/browser/first_run/first_run_browsertest.cc (right): https://codereview.chromium.org/12094026/diff/1002/chrome/browser/first_run/first_run_browsertest.cc#newcode96 chrome/browser/first_run/first_run_browsertest.cc:96: ASSERT_TRUE(file_util::CreateTemporaryFile(&prefs_file)); On 2013/01/30 21:00:53, cpu wrote: > who deletes ...
7 years, 10 months ago (2013-01-31 00:47:16 UTC) #3
cpu_(ooo_6.6-7.5)
You seem to know more than me about these kind of tests, I personally prefer ...
7 years, 10 months ago (2013-01-31 01:19:20 UTC) #4
tapted
On 2013/01/31 01:19:20, cpu wrote: > You seem to know more than me about these ...
7 years, 10 months ago (2013-01-31 01:32:19 UTC) #5
cpu_(ooo_6.6-7.5)
lgtm
7 years, 10 months ago (2013-01-31 22:49:04 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/12094026/14001
7 years, 10 months ago (2013-01-31 23:00:53 UTC) #7
commit-bot: I haz the power
7 years, 10 months ago (2013-02-01 01:52:20 UTC) #8
Message was sent while issue was closed.
Change committed as 180039

Powered by Google App Engine
This is Rietveld 408576698