0
Commit Graph

55 Commits

Author SHA1 Message Date
Peter Kasting
134ef9afca [cleanup] clang-format base.
Produced with:

find base -name \"*.cc\" -o -name \"*.h\" -o -name \"*.mm\" | xargs clang-format -i

base/third_party was then manually reset.

R=pbos@chromium.org

NO_IFTTT=Reformat only

Bug: none
Change-Id: Ie567eb767d41315fd60e8a17c6aee8a90ff6a3ec
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6117971
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Owners-Override: Peter Boström <pbos@chromium.org>
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Peter Boström <pbos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1400624}
2024-12-27 18:30:09 -08:00
Andrew Rayskiy
6f02136671 [CodeHealth] Replace std::is_...<>::value -> std::is_..._v<> in base/
Patch 6/x:
  * std::tuple_size<>
  * Multiline replacements :)

std::tuple_size<> in base/test/test_future_internal.h has to stay as is
because tuple_size<>::value within enable_if_t should be a part of the
immediate context (while tuple_size_v is not and hence fails with non-
tuple types).

Change-Id: If9e21faaad4fdc241afa272f0eb98dd854608ee3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4954858
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Andrew Rayskiy <greengrape@google.com>
Cr-Commit-Position: refs/heads/main@{#1212334}
2023-10-19 19:55:06 +00:00
Avi Drissman
e4622aaecc Update copyright headers in base/
The methodology used to generate this CL is documented in
https://crbug.com/1098010#c34.

An earlier version of this CL, https://crrev.com/c/3879904,
was reverted due to an issue that was resolved with
https://crrev.com/c/3881211.

No-Try: true
Bug: 1098010
Change-Id: Ibd6ffb97e66835bc299fe7b85876c3e2927b2345
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3883841
Auto-Submit: Avi Drissman <avi@chromium.org>
Owners-Override: Avi Drissman <avi@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Mark Mentovai <mark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1044747}
2022-09-08 20:36:06 +00:00
Daniel Cheng
3d1108defc Revert "Update copyright headers in base/"
This reverts commit eccb7e8107.

Reason for revert: https://crbug.com/1361092

Original change's description:
> Update copyright headers in base/
>
> The methodology used to generate this CL is documented in
> https://crbug.com/1098010#c21.
>
> No-Try: true
> Bug: 1098010
> Change-Id: Icd01cc1648eab4b0550afcff2bee17076359a132
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3879904
> Owners-Override: Avi Drissman <avi@chromium.org>
> Commit-Queue: Avi Drissman <avi@chromium.org>
> Auto-Submit: Avi Drissman <avi@chromium.org>
> Reviewed-by: Mark Mentovai <mark@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1044191}

Bug: 1098010
Change-Id: Iefdde85d3d44fabe09906cd725b39a4e0b359491
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3880811
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Owners-Override: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1044252}
2022-09-07 23:42:04 +00:00
Avi Drissman
eccb7e8107 Update copyright headers in base/
The methodology used to generate this CL is documented in
https://crbug.com/1098010#c21.

No-Try: true
Bug: 1098010
Change-Id: Icd01cc1648eab4b0550afcff2bee17076359a132
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3879904
Owners-Override: Avi Drissman <avi@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1044191}
2022-09-07 21:26:21 +00:00
tzik
f32dc97132 Remove MakeIndexSequenceForTuple
MakeIndexSequenceForTuple is a leftover of C++14 adoption around
std::integer_sequence, and tuple.h looks not a good place for it.
This CL just inlines it to caller, and removes MakeIndexSequenceForTuple.

Change-Id: Id397d8ac83ed17310a72abfd31c378f280cd7ad1
Reviewed-on: https://chromium-review.googlesource.com/700157
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Antoine Labour <piman@chromium.org>
Commit-Queue: Taiju Tsuiki <tzik@chromium.org>
Cr-Commit-Position: refs/heads/master@{#507244}
2017-10-07 00:37:12 +00:00
Jeremy Roman
84956fa867 [c++] Whitelist std::integer_sequence and replace base::IndexSequence with std::index_sequence.
The helper base::MakeIndexSequenceForTuple doesn't have a drop-in replacement
in the STL (std::index_sequence_for takes a parameter pack), so it has been
kept.

Bug: 554717
Change-Id: Ib38ea21855cd5c0f913727282a3603dc05287000
Tbr: jam@chromium.org
Reviewed-on: https://chromium-review.googlesource.com/616082
Reviewed-by: Jeremy Roman <jbroman@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Jeremy Roman <jbroman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#494802}
2017-08-16 15:55:20 +00:00
tzik
f7c47573b7 Replace base::get with std::get
base::get is no longer needed after the linux sysroot update. The new
sysroot has libstdc++-4.8, that has rvalue reference support of
std::tuple.

Review-Url: https://codereview.chromium.org/2797133002
Cr-Commit-Position: refs/heads/master@{#462229}
2017-04-05 21:45:03 +00:00
thakis
29d59efc93 Try removing a MSVC2013 /analyze workaround to see if it is still needed.
Reverts crrev.com/803183004, maybe the problem
was fixed in 2015. (If not, we can revert the revert again.)

BUG=427616

Review-Url: https://codereview.chromium.org/2576523002
Cr-Commit-Position: refs/heads/master@{#438270}
2016-12-13 20:10:30 +00:00
thakis
d6d8043dc7 Remove unused include.
No behavior change.

BUG=none

Review-Url: https://codereview.chromium.org/2526623002
Cr-Commit-Position: refs/heads/master@{#434118}
2016-11-23 05:16:40 +00:00
tzik
2387a82551 Clean up DispatchTo{Function,Method} impl
* Remove Unwrap call, which is no longer needed after http://crrev.com/2268283002
* Use Perfect Forwarding on Dispatch{Function,Method}

Review-Url: https://codereview.chromium.org/2270693003
Cr-Commit-Position: refs/heads/master@{#414424}
2016-08-25 13:58:43 +00:00
tzik
ec749b1eea Add base::get to support rvalue-reference tuple
std::get in libstdc++4.6 doesn't have a overload for rvalue-reference
tuple. That implies std::get<0>(std::make_tuple(1)) is `const int&`,
instead of `int&&`.
This CL add base::get with correct type.

Review-Url: https://codereview.chromium.org/2047013002
Cr-Commit-Position: refs/heads/master@{#401758}
2016-06-24 00:35:37 +00:00
tzik
1068f1bea7 Remove base::Tuple
base::Tuple has been an alias of std::tuple for the migration. And this
CL completes the migration by:
 - Replace base::Tuple with std::tuple,
 - Replace base::MakeTuple with std::make_tuple,
 - Replace base::get with std::get,
 - Remove base::Tuple, base::MakeTuple, base::get and base::MakeRefTuple

BUG=554987
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation

Review-Url: https://codereview.chromium.org/2023243002
Cr-Commit-Position: refs/heads/master@{#397652}
2016-06-03 07:26:59 +00:00
rjkroege
b1f8959a40 Correct a comment in tuple.h that tripped me up.
BUG=none

Review URL: https://codereview.chromium.org/1896533003

Cr-Commit-Position: refs/heads/master@{#387812}
2016-04-16 03:36:11 +00:00
mdempsky
390ab1e0cb base: eliminate TupleTraits and TupleTypes
The only remaining use of these were base::TupleTypes<T>::ValueTuple,
which just maps Tuple<Ts...> to Tuple<remove_reference_t<Ts>...>.
However, all of the uses were for reference-free tuples, making it a
noop.

BUG=554987

Review URL: https://codereview.chromium.org/1768153002

Cr-Commit-Position: refs/heads/master@{#379667}
2016-03-07 22:20:04 +00:00
tzik
463eb426b5 Remove UnwrapTraits
Remove UnwrapTraits::ForwardType, which is no longer used, and extract
UnwrapTraits::Unwrap to be non member function.

BUG=554299

Review URL: https://codereview.chromium.org/1698223002

Cr-Commit-Position: refs/heads/master@{#375576}
2016-02-16 15:05:12 +00:00
tzik
1ea87e3a01 Support smart pointers in base::DispatchToMethod
* Make base::DispatchToMethod to accept smart pointers as the this pointer
* Remove base::internal::UnwrapTraits from //storage code

BUG=554299

Review URL: https://codereview.chromium.org/1696093002

Cr-Commit-Position: refs/heads/master@{#375516}
2016-02-16 04:58:02 +00:00
tzik
9ca3021996 Replace base::Tuple implementation with std::tuple
* Remove base::Tuple and make base::Tuple as an alias of std::tuple.
* Expand the alias where it's used in a class template specialization to avoid MSVC2013 internal compiler error.

BUG=554987

Review URL: https://codereview.chromium.org/1673563002

Cr-Commit-Position: refs/heads/master@{#374878}
2016-02-11 10:26:28 +00:00
avi
9b6f42934e Switch to standard integer types in base/.
BUG=138542
TBR=mark@chromium.org
NOPRESUBMIT=true

Review URL: https://codereview.chromium.org/1538743002

Cr-Commit-Position: refs/heads/master@{#366910}
2015-12-26 22:16:15 +00:00
mdempsky
1ada4a8fc9 Remove unused Tuple dispatch functions
Review URL: https://codereview.chromium.org/1535643002

Cr-Commit-Position: refs/heads/master@{#365951}
2015-12-18 00:40:26 +00:00
tzik
904f19454a Mark base::Tuple as final
Extending tuple confuses the compiler when we replace
base::Tuple with std::tuple.
This CL removes a base::Tuple extension and forbids it.

BUG=554987

Review URL: https://codereview.chromium.org/1462443002

Cr-Commit-Position: refs/heads/master@{#360404}
2015-11-18 20:36:27 +00:00
brettw
d5ca2bc110 Move Tuple to base namespace.
Namespace change only, no functionality change.

The only non-search-and-replace change is in generate_gmock_mutant.py which changes some line wrapping logic for the generated gmock_mutant header.

NOPRESUBMIT=true
(No presubmit due to long lines in the generated gmock_mutant.h header).
R=sky

Review URL: https://codereview.chromium.org/1159553007

Cr-Commit-Position: refs/heads/master@{#332058}
2015-05-29 22:16:36 +00:00
tfarina
a311635161 Cleanup: Fix base header include guards.
The header include guards should match the file path from root.

These entries were found using a modified version of Eric's
fix-include-guards.py script found attached in
https://code.google.com/p/chromium/issues/detail?id=435361#c7.

BUG=435361
TEST=base_unittests
R=danakj@chromium.org

Review URL: https://codereview.chromium.org/1137323003

Cr-Commit-Position: refs/heads/master@{#329731}
2015-05-13 22:11:01 +00:00
brucedawson
35709e179d Extend variadic template hack for /analyze.
A recent Chrome change broke the /analyze builder by using a larger
Tuple than had been allowed for in the previous VC++ bug workaround.
This change unblocks the /analyze builder and will not affect
/analyze builds.

The /analyze error is:
e:\b\build\slave\chromium_windows_analyze\build\src\base\tuple.h(99) : error C2027: use of undefined type 'MakeIndexSequenceImpl<0xc>'
e:\b\build\slave\chromium_windows_analyze\build\src\device\usb\usb_device_handle_impl.cc(608)

and came from https://codereview.chromium.org/980023002

R=thakis@chromium.org
BUG=427616

Review URL: https://codereview.chromium.org/1095543003

Cr-Commit-Position: refs/heads/master@{#325877}
2015-04-20 18:20:46 +00:00
brucedawson
b132ccda86 Avoid a /analyze internal compiler error with MakeIndexSequence
The recently added MakeIndexSequence templates cause a VC++ internal
compiler error when building with /analyze. This happens on dozens of
source files so disabling /analyze for those files is impractical. This
change conditionally replaces the template recursion with a
straightforward implementation for values from zero to five. This is
sufficient to build Chrome at the moment.

The code which VC++ doesn't like was introduced in change:
https://codereview.chromium.org/693693005

It's an ugly fix, but justified by the desire to allow running
/analyze. The /analyze version of the code will never be run.

A VC++ bug has been filed:

https://connect.microsoft.com/VisualStudio/feedback/details/1053626

BUG=427616

Review URL: https://codereview.chromium.org/803183004

Cr-Commit-Position: refs/heads/master@{#312469}
2015-01-21 22:03:10 +00:00
avi
4f841af78d Revert of Revert "Update legacy Tuple-using code." (patchset id:1 of https://codereview.chromium.org/826573002/)
Reason for revert:
The tests should have failed with this. Undoing the revert.

Original issue's description:
> Revert "Update legacy Tuple-using code."
>
> This reverts commit 12f4b98357
>
> BUG=440675, 444827
>
> Committed: 85748694f2

TBR=
NOTREECHECKS=true
NOTRY=true
BUG=440675, 444827

Review URL: https://codereview.chromium.org/794073003

Cr-Commit-Position: refs/heads/master@{#309586}
2014-12-23 21:48:10 +00:00
Avi Drissman
85748694f2 Revert "Update legacy Tuple-using code."
This reverts commit 12f4b98357

BUG=440675, 444827

Review URL: https://codereview.chromium.org/826573002

Cr-Commit-Position: refs/heads/master@{#309583}
2014-12-23 21:23:52 +00:00
Avi Drissman
95c2a1b7d5 Update legacy Tuple-using code.
BUG=440675
TEST=no change
R=mdempsky@chromium.org, thakis@chromium.org
TBR=ben@chromium.org

Review URL: https://codereview.chromium.org/821453003

Cr-Commit-Position: refs/heads/master@{#309441}
2014-12-22 18:00:18 +00:00
mdempsky
f2c5add463 tuple: leave fields uninitialized in default constructors
Using "x()" in TupleLeaf's default constructor causes primitive types
(e.g., integers and pointers) to be zero initialized, whereas
previously Tuple left them indeterminate.  Arguably zero-initializing
is better, but the change was inadvertant and results in a measurable
code size increase, so this CL reverts it (at least for now).

BUG=440806

Review URL: https://codereview.chromium.org/791883003

Cr-Commit-Position: refs/heads/master@{#308455}
2014-12-15 23:26:44 +00:00
mdempsky
06c626a809 tuple: further generalize/simplify Tuple implementation
Instead of specially implementing Tuple for 0 to 8 arguments, use a
more traditional implementation by having Tuple<A, B, ...> inherit
from TupleLeaf<0, A>, TupleLeaf<1, B>, etc.  This allows Tuple to be
used with an arbitrary number of arguments.

To remain backwards compatible with code that accesses "t.a", "t.b",
etc., we specialize TupleLeaf for the first 8 elements to store their
values in appropriately named member variables.  These accessors work
even for Tuples with more than 8 elements, but the 9th element and
beyond are only supported with get<N>().

Review URL: https://codereview.chromium.org/792763002

Cr-Commit-Position: refs/heads/master@{#307681}
2014-12-10 11:22:44 +00:00
mdempsky
6e7f615f49 tuple: update to make use of C++11
This CL adds a generic variadic Tuple class that generalizes
Tuple1, Tuple2, etc.  It also adds the C++11-style get<N>(tuple)
method for accessing tuple members.  As a demonstration, the
DispatchToFunction() and DispatchToMethod() functions have been
updated to make use of these and became substantially shorter.

However, to remain compatible with existing code that accesses
Tuple fields by name, the Tuple class is actually implemented via
multiple specializations that match the TupleN classes that used
to exist.  Once all access to foo.a, bar->b, ... have been updated
to get<0>(foo), get<1>(*bar), ... then we can simplify Tuple
further and eventually replace it with std::tuple.

Review URL: https://codereview.chromium.org/693693005

Cr-Commit-Position: refs/heads/master@{#307629}
2014-12-10 03:11:21 +00:00
rsleevi@chromium.org
58ae630b95 Have DispatchToMethod use base::internal::UnwrapTraits when dispatching
When dispatching, have base::DispatchToMethod/DispatchToFunction use the
base::internal::UnwrapTraits<> to properly unwrap the base::Tuple's wrapped
argument.

This ensures that methods that expect a "T*" can be properly dispatched when
the tuple contains a scoped_refptr<T> without relying on implicit
conversions.

BUG=110610

Review URL: https://chromiumcodereview.appspot.com/17911007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208903 0039d316-1c4b-4281-b951-d872f2087c98
2013-06-27 12:48:02 +00:00
ajwong@chromium.org
01c86ece02 Remove the rest of #pragma once in one big CL.
For context see this thread:
  https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II

TBR=thakis,pkasting,jam

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98
2012-07-11 19:01:43 +00:00
oshima@chromium.org
6b9b771c44 Remove chromeos specific debug code from tuple.h
This should have been removed as a part of 71680, but seems like I overlooked it.

BUG=7327
TEST=none


Review URL: http://codereview.chromium.org/8037050

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103063 0039d316-1c4b-4281-b951-d872f2087c98
2011-09-28 00:33:59 +00:00
noelutz@google.com
fa685ffdc7 Intergration of the client-side phishing detection.
If the client-side phishing detection classifies a page as phishing it will
send back a ping to Google to verify whether or not the page is really phishing.

If the server also classifies the site as phishing we may show a phishing
interstitial if it is enabled.

BUG=
TEST=

Review URL: http://codereview.chromium.org/6014003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75299 0039d316-1c4b-4281-b951-d872f2087c98
2011-02-17 19:47:13 +00:00
oshima@google.com
ae72fc3331 Revert "Adding CHECKs to troubleshoot the crash issue ..."
Revert "Adding CHECKs to troubleshoot the crash issue intuple.h/browser_render_process_host.cc (see bug description)"

This reverts commit 29801f4598cf1a605c6e1a7b0295e0ac29f27b59.

BUG=chromium-os:7327
TEST=none

Review URL: http://codereview.chromium.org/6323003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71680 0039d316-1c4b-4281-b951-d872f2087c98
2011-01-18 19:23:39 +00:00
oshima@chromium.org
a9f206fe4f Eliminate 'if defiend(CHECK) to avoid having to different binaries for the same template function.
There is a new crash report but not caught by the CHECKS.
(http://crash/reportdetail?reportid=accf4c24431527ce#crashing_thread)
This could be because this ifdef generates two different objects of this template function and linker may be picking bad one.

BUG=chromium-os:7327
TEST=none

Review URL: http://codereview.chromium.org/5405003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67913 0039d316-1c4b-4281-b951-d872f2087c98
2010-12-02 00:11:40 +00:00
oshima@chromium.org
d0b2afe6ee Adding CHECKs to troubleshoot the crash issue intuple.h/browser_render_process_host.cc (see bug description)
This is chromeos only and will be removed once I correct data.

BUG=chromium-os:7327
TEST=none

Review URL: http://codereview.chromium.org/4752003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65729 0039d316-1c4b-4281-b951-d872f2087c98
2010-11-10 23:47:56 +00:00
erg@google.com
7a4de7a6ce Reapplies all the IPC system work (reverts the revert r56272).
That patch wasn't what caused the regression in the page cycler.

BUG=51411,52103
TEST=still compiles

Review URL: http://codereview.chromium.org/3106018

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56390 0039d316-1c4b-4281-b951-d872f2087c98
2010-08-17 18:38:24 +00:00
erg@google.com
0cfe5dae92 Completely revert all my IPC work to see if this was what regressed the page cycler.
BUG=51411,52103
TEST=page cycler

Review URL: http://codereview.chromium.org/3170020

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56272 0039d316-1c4b-4281-b951-d872f2087c98
2010-08-17 00:24:54 +00:00
erg@google.com
6edce23f84 FBTF: Reapplies r55259, the first new IPC definition patch.
This moves MessageWithTuple::Read() back into the main ipc_message_utils.h
header from the private ipc_messsage_utils_impl.h header. In release mode, this
was causing link failures.

BUG=51411
TEST=none

Review URL: http://codereview.chromium.org/3069034

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55587 0039d316-1c4b-4281-b951-d872f2087c98
2010-08-10 18:02:03 +00:00
pinkerton@google.com
071b4b9419 Revert 55259 - FBTF: New IPC definitions, only applied to async ROUTED and CONTROL messages.
The slowest cc files in chrome include render_messages.h and other IPC message
definitions. Including one of these files will bring in half of chrome because
in the IPC system previously required full class definitions due to
implementation details.

The new system allows forward declarations and places the implementations of
functions that need the full class definitions (ctor/dtor()/Log() and
superclass ctor/Read() methods) into a separate xxx_messages.cc file using a
parallel set of macros to ipc_message_macros.h. This has the added benefit
of moving most of the template instantiation junk into a small number of
files.

Pros:
- Will speed up compiling by a lot once everything is forward declared.
- Already, intermediary .o/.a files are smaller.

Cons:
- Adds a 4th pass to the messages system, this time in a different header.

BUG=51411
TEST=none

Review URL: http://codereview.chromium.org/2873090

TBR=erg@google.com
Review URL: http://codereview.chromium.org/3080040

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55406 0039d316-1c4b-4281-b951-d872f2087c98
2010-08-09 16:06:58 +00:00
erg@google.com
c5406e5c86 FBTF: New IPC definitions, only applied to async ROUTED and CONTROL messages.
The slowest cc files in chrome include render_messages.h and other IPC message
definitions. Including one of these files will bring in half of chrome because
in the IPC system previously required full class definitions due to
implementation details.

The new system allows forward declarations and places the implementations of
functions that need the full class definitions (ctor/dtor()/Log() and
superclass ctor/Read() methods) into a separate xxx_messages.cc file using a
parallel set of macros to ipc_message_macros.h. This has the added benefit
of moving most of the template instantiation junk into a small number of
files.

Pros:
- Will speed up compiling by a lot once everything is forward declared.
- Already, intermediary .o/.a files are smaller.

Cons:
- Adds a 4th pass to the messages system, this time in a different header.

BUG=51411
TEST=none

Review URL: http://codereview.chromium.org/2873090

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55259 0039d316-1c4b-4281-b951-d872f2087c98
2010-08-06 17:55:32 +00:00
thakis@chromium.org
32b76eff6f #pragma once for app, base, chrome, gfx, ipc, net, skia, views
BUG=50273
TEST=everything still builds, build is 10% faster on windows, same speed on mac/linux

TBR: erg

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53716 0039d316-1c4b-4281-b951-d872f2087c98
2010-07-26 23:08:24 +00:00
phajdan.jr@chromium.org
ae894519fb Download code cleanup:
- choose better names for some helper methods
- move code to less random places

This change also adds bigger tuples support, up to Tuple8 in base/tuple.h.
The plan is to stop using such big number of parameters, but for now it's not
trivial.

This change also fixes some UI tests, not sure why it is so.

TEST=unit_tests, browser_tests, ui_tests
BUG=48913

Review URL: http://codereview.chromium.org/2805091

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53053 0039d316-1c4b-4281-b951-d872f2087c98
2010-07-20 16:56:26 +00:00
erg@google.com
2fdc86af64 Style cleanup in preparation for auto-linting base/.
BUG=none
TEST=none

Review URL: http://codereview.chromium.org/552004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37164 0039d316-1c4b-4281-b951-d872f2087c98
2010-01-26 23:08:02 +00:00
mpcomplete@google.com
c2fe3154d3 Prevent an extra copy of data types that get passed into IPC messages when
sending them.  This makes it so that types sendable via IPC no longer need
copy constructors.

BUG=12296
Review URL: http://codereview.chromium.org/112042

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16497 0039d316-1c4b-4281-b951-d872f2087c98
2009-05-20 18:24:14 +00:00
deanm@chromium.org
7afa9c92e0 NO CODE CHANGE
Normalize end of file newlines in base/.  All files end in a single newline.

Review URL: http://codereview.chromium.org/42011


git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11329 0039d316-1c4b-4281-b951-d872f2087c98
2009-03-10 13:39:31 +00:00
maruel@chromium.org
52a261f59b NO CODE CHANGE (except one global std::wstring changed to const wchar_t* const per style compliance).
Preliminary work to enforce new PRESUBMIT.py rules:
- <=80 cols
- no trailing whitespaces
- svn:eol-style=LF

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10791 0039d316-1c4b-4281-b951-d872f2087c98
2009-03-03 15:01:12 +00:00
sky@google.com
39a248b002 Adds the ability for save dialogs to take a default extension.
BUG=4287
TEST=see bug

Review URL: http://codereview.chromium.org/10621

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5304 0039d316-1c4b-4281-b951-d872f2087c98
2008-11-12 22:10:20 +00:00