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

Issue 4247: Port some things in browser/{download,history}, minor things in common.... (Closed)

Created:
12 years, 3 months ago by please use my chromium address
Modified:
5 years, 1 month ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Port some things in browser/{download,history}, minor things in common. Also enables some unit tests (Hammer/unit_tests runs 61 after applying this patch). Added os_unix.c file missing for sqlite. Without it you can't link things really using sqlite. BUG=2333

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -98 lines) Patch
M chrome/SConscript.unit_tests View 1 2 4 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/SConscript View 1 2 3 chunks +16 lines, -12 lines 0 comments Download
A chrome/browser/download/download_exe.h View 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/browser/download/download_exe.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/download/download_util.h View 2 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/download/save_file.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/download/save_file.cc View 1 2 6 chunks +18 lines, -13 lines 0 comments Download
M chrome/browser/download/save_types.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/history/history_types.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/history/history_types_unittest.cc View 1 2 4 chunks +12 lines, -12 lines 0 comments Download
M chrome/browser/history/in_memory_history_backend.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/history/snippet.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/history/text_database.cc View 1 2 2 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/history/text_database_manager.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/history/text_database_unittest.cc View 1 2 5 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/history/thumbnail_database.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/history/url_database.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/visit_tracker.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/history/visitsegment_database.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profile_manager.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/bloom_filter_unittest.cc View 1 2 2 chunks +2 lines, -7 lines 0 comments Download
M chrome/browser/template_url.h View 1 2 2 chunks +1 line, -7 lines 0 comments Download
M chrome/browser/template_url.cc View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/common/mru_cache.h View 1 2 5 chunks +18 lines, -8 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
please use my chromium address
12 years, 3 months ago (2008-09-24 07:21:05 UTC) #1
Dean McNamee
A lot of this looks good. It's a big patch though, I will probably have ...
12 years, 3 months ago (2008-09-24 10:25:20 UTC) #2
sgk
More SCons lgtm goodness.
12 years, 3 months ago (2008-09-24 16:28:09 UTC) #3
please use my chromium address
On 2008/09/24 10:25:20, deanm wrote: > http://codereview.chromium.org/4247/diff/1/12#newcode352 > Line 352: match.title = UTF8ToWide(statement->column_string(1)); > Hmm, ...
12 years, 3 months ago (2008-09-25 08:32:45 UTC) #4
please use my chromium address
Okay. Updated the patch after refactorings landed. Now some earlier comments may still apply. Please ...
12 years, 2 months ago (2008-10-01 19:04:56 UTC) #5
Mark Mentovai
LGTM http://codereview.chromium.org/4247/diff/401/619 File chrome/browser/download/download_exe.cc (right): http://codereview.chromium.org/4247/diff/401/619#newcode8 Line 8: #include "base/logging.h" Didn't Dean have a comment ...
12 years, 2 months ago (2008-10-01 20:17:58 UTC) #6
brettw
History stuff looks correct to me.
12 years, 2 months ago (2008-10-01 21:58:48 UTC) #7
please use my chromium address
12 years, 2 months ago (2008-10-02 10:14:35 UTC) #8
http://codereview.chromium.org/4247/diff/401/619
File chrome/browser/download/download_exe.cc (right):

http://codereview.chromium.org/4247/diff/401/619#newcode8
Line 8: #include "base/logging.h"
On 2008/10/01 20:17:58, Mark Mentovai wrote:
> Didn't Dean have a comment about this?

OK, I made a change he wrote about.

http://codereview.chromium.org/4247/diff/401/617
File chrome/browser/download/save_file.cc (right):

http://codereview.chromium.org/4247/diff/401/617#newcode67
Line 67: // with the security that makes sense in the new path. If the last
parameter
On 2008/10/01 20:17:58, Mark Mentovai wrote:
> This comment no longer applies, revise.

Done.

http://codereview.chromium.org/4247/diff/401/617#newcode102
Line 102: // TODO(port): Similarly mark on Mac.
On 2008/10/01 20:17:58, Mark Mentovai wrote:
> What's this mean?
> 
> Oh, now I get it.  Can you move the comment after the OS_WIN ifdef so that
> "similarly" has some context?

Done.

http://codereview.chromium.org/4247/diff/401/609
File chrome/browser/history/text_database.cc (right):

http://codereview.chromium.org/4247/diff/401/609#newcode121
Line 121: const std::wstring number_begin(
On 2008/10/01 20:17:58, Mark Mentovai wrote:
> Now that it's not a pointer, why's it still called number_begin?

Done. Please check whether the new name is right ("suffix").

http://codereview.chromium.org/4247/diff/401/604
File chrome/browser/safe_browsing/bloom_filter_unittest.cc (right):

http://codereview.chromium.org/4247/diff/401/604#newcode27
Line 27: uint32 count = 1000;//100000;
On 2008/10/01 20:17:58, Mark Mentovai wrote:
> Can you fix the comment to comply with our style guide too?

Done. But please verify if that's what you meant.

http://codereview.chromium.org/4247/diff/401/605
File chrome/browser/template_url.cc (right):

http://codereview.chromium.org/4247/diff/401/605#newcode507
Line 507: void TemplateURL::set_keyword(const std::wstring& keyword) {
On 2008/10/01 20:17:58, Mark Mentovai wrote:
> I guess moving this to the .cc is OK, but I don't know why you've done it.

There are some files this patch moves to Linux build which depend on
template_url.h. Now l10n_util.h is not ported, so I moved this little function
here to remove l10n_util #include from template_url.h.

http://codereview.chromium.org/4247/diff/401/622
File chrome/common/mru_cache.h (right):

http://codereview.chromium.org/4247/diff/401/622#newcode196
Line 196: DISALLOW_EVIL_CONSTRUCTORS(MRUCache);
On 2008/10/01 20:17:58, Mark Mentovai wrote:
> This should be the last thing in the class.  I think that still holds even if
> you have to introduce an extra "private" section before the normal "public"
> section.
> 
> Also, the new name for this is DISALLOW_COPY_AND_ASSIGN.

Done.

http://codereview.chromium.org/4247/diff/401/622#newcode201
Line 201: : ParentType(max_size) {
On 2008/10/01 20:17:58, Mark Mentovai wrote:
> It's four spaces for a continuation line like this.

Done.

http://codereview.chromium.org/4247/diff/401/622#newcode228
Line 228: DISALLOW_EVIL_CONSTRUCTORS(OwningMRUCache);
On 2008/10/01 20:17:58, Mark Mentovai wrote:
> As before.

Done.

http://codereview.chromium.org/4247/diff/401/622#newcode233
Line 233: : ParentType(max_size) {
On 2008/10/01 20:17:58, Mark Mentovai wrote:
> Me too.

Done.

Powered by Google App Engine
This is Rietveld 408576698