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

Issue 326024: Mac: remove some now-dead code and add a comment. (Closed)

Created:
11 years, 2 months ago by viettrungluu
Modified:
9 years, 6 months ago
Reviewers:
jeremy
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Mac: remove some now-dead code and add a comment. I slightly jumped the gun on committing CL 328010, and this patch does some things requested in a review. BUG=23825 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29979 I entered the wrong bug number above. It should have been: BUG=25603

Patch Set 1 #

Total comments: 1

Patch Set 2 : Simplified unit test a bit now that HOME_PAGE is never set. #

Total comments: 4

Patch Set 3 : Further changes as requested by Jeremy. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -41 lines) Patch
M chrome/browser/importer/safari_importer.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/importer/safari_importer.mm View 4 chunks +4 lines, -26 lines 0 comments Download
M chrome/browser/importer/safari_importer_unittest.mm View 2 2 chunks +3 lines, -14 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
viettrungluu
Sorry, I had committed that patch. Now I've removed the dead Safari home page import ...
11 years, 2 months ago (2009-10-23 23:47:59 UTC) #1
jeremy
Thanks for the quick turaround! There's one more vestige of this in the code :) ...
11 years, 2 months ago (2009-10-24 00:03:02 UTC) #2
viettrungluu
Thanks to you also. :) You do indeed remember correctly, and I've made the simplifications. ...
11 years, 2 months ago (2009-10-24 00:12:14 UTC) #3
jeremy
LGTM with following 2 changes. http://codereview.chromium.org/326024/diff/3001/4003 File chrome/browser/importer/safari_importer_unittest.mm (right): http://codereview.chromium.org/326024/diff/3001/4003#newcode150 Line 150: EXPECT_EQ(items, HISTORY | ...
11 years, 2 months ago (2009-10-24 00:24:20 UTC) #4
viettrungluu
11 years, 2 months ago (2009-10-24 00:32:13 UTC) #5
http://codereview.chromium.org/326024/diff/3001/4003
File chrome/browser/importer/safari_importer_unittest.mm (right):

http://codereview.chromium.org/326024/diff/3001/4003#newcode150
Line 150: EXPECT_EQ(items, HISTORY | FAVORITES);
On 2009/10/24 00:24:20, jeremy wrote:
> Could you add back the rest of the ", NONE" checks and add a new one that
tests
> that HOME_PAGE isn't set.  I know that's redundant but it'll make things a
> little more explicit.

Done.

http://codereview.chromium.org/326024/diff/3001/4003#newcode161
Line 161: SafariImporter::CanImport(fake_library_dir, &items);
On 2009/10/24 00:24:20, jeremy wrote:
> This can now be wrapped in an EXPECT_FALSE() and the comment above can be
> removed since that's referring to HOME_PAGE.  With your change, I think
> CanImport should always return false.

Done.

Powered by Google App Engine
This is Rietveld 408576698