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

Unified Diff: net/base/directory_lister.cc

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/base/directory_lister.cc
diff --git a/net/base/directory_lister.cc b/net/base/directory_lister.cc
index e75e9f808dc87e828a2cd2adee5dfb87b0e8bcbb..48d8ac78ee144f3d11fab747914f663a7c44e378 100644
--- a/net/base/directory_lister.cc
+++ b/net/base/directory_lister.cc
@@ -87,8 +87,7 @@ void SortData(std::vector<DirectoryLister::DirectoryListerData>* data,
DirectoryLister::DirectoryLister(const base::FilePath& dir,
DirectoryListerDelegate* delegate)
- : core_(new Core(dir, false, ALPHA_DIRS_FIRST, this)),
- delegate_(delegate) {
+ : core_(new Core(dir, false, ALPHA_DIRS_FIRST, this)), delegate_(delegate) {
DCHECK(delegate_);
DCHECK(!dir.value().empty());
}
@@ -97,8 +96,7 @@ DirectoryLister::DirectoryLister(const base::FilePath& dir,
bool recursive,
SortType sort,
DirectoryListerDelegate* delegate)
- : core_(new Core(dir, recursive, sort, this)),
- delegate_(delegate) {
+ : core_(new Core(dir, recursive, sort, this)), delegate_(delegate) {
DCHECK(delegate_);
DCHECK(!dir.value().empty());
}
@@ -119,14 +117,12 @@ DirectoryLister::Core::Core(const base::FilePath& dir,
bool recursive,
SortType sort,
DirectoryLister* lister)
- : dir_(dir),
- recursive_(recursive),
- sort_(sort),
- lister_(lister) {
+ : dir_(dir), recursive_(recursive), sort_(sort), lister_(lister) {
DCHECK(lister_);
}
-DirectoryLister::Core::~Core() {}
+DirectoryLister::Core::~Core() {
+}
bool DirectoryLister::Core::Start() {
origin_loop_ = base::MessageLoopProxy::current();
@@ -140,7 +136,6 @@ void DirectoryLister::Core::Cancel() {
}
void DirectoryLister::Core::StartInternal() {
-
if (!base::DirectoryExists(dir_)) {
origin_loop_->PostTask(
FROM_HERE,
@@ -180,12 +175,10 @@ void DirectoryLister::Core::StartInternal() {
SortData(&file_data, sort_);
origin_loop_->PostTask(
- FROM_HERE,
- base::Bind(&DirectoryLister::Core::SendData, this, file_data));
+ FROM_HERE, base::Bind(&DirectoryLister::Core::SendData, this, file_data));
- origin_loop_->PostTask(
- FROM_HERE,
- base::Bind(&DirectoryLister::Core::OnDone, this, OK));
+ origin_loop_->PostTask(FROM_HERE,
+ base::Bind(&DirectoryLister::Core::OnDone, this, OK));
}
void DirectoryLister::Core::SendData(

Powered by Google App Engine
This is Rietveld 408576698