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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_file_system.cc

Issue 10704124: Fix style nits in gdata directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/gdata/gdata_file_system.h" 5 #include "chrome/browser/chromeos/gdata/gdata_file_system.h"
6 6
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 2415 matching lines...) Expand 10 before | Expand all | Expand 10 after
2426 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 2426 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
2427 2427
2428 base::PlatformFileError error = GDataToPlatformError(status); 2428 base::PlatformFileError error = GDataToPlatformError(status);
2429 if (error != base::PLATFORM_FILE_OK) { 2429 if (error != base::PLATFORM_FILE_OK) {
2430 callback.Run(error, -1, -1); 2430 callback.Run(error, -1, -1);
2431 return; 2431 return;
2432 } 2432 }
2433 2433
2434 scoped_ptr<AccountMetadataFeed> feed; 2434 scoped_ptr<AccountMetadataFeed> feed;
2435 if (data.get()) 2435 if (data.get())
2436 feed = AccountMetadataFeed::CreateFrom(*data); 2436 feed = AccountMetadataFeed::CreateFrom(*data);
2437 if (!feed.get()) { 2437 if (!feed.get()) {
2438 callback.Run(base::PLATFORM_FILE_ERROR_FAILED, -1, -1); 2438 callback.Run(base::PLATFORM_FILE_ERROR_FAILED, -1, -1);
2439 return; 2439 return;
2440 } 2440 }
2441 2441
2442 callback.Run(base::PLATFORM_FILE_OK, 2442 callback.Run(base::PLATFORM_FILE_OK,
2443 feed->quota_bytes_total(), 2443 feed->quota_bytes_total(),
2444 feed->quota_bytes_used()); 2444 feed->quota_bytes_used());
2445 } 2445 }
2446 2446
(...skipping 1473 matching lines...) Expand 10 before | Expand all | Expand 10 after
3920 // must go through here. Removes the |file_path| from the remembered set so 3920 // must go through here. Removes the |file_path| from the remembered set so
3921 // that subsequent operations can open the file again. 3921 // that subsequent operations can open the file again.
3922 open_files_.erase(file_path); 3922 open_files_.erase(file_path);
3923 3923
3924 // Then invokes the user-supplied callback function. 3924 // Then invokes the user-supplied callback function.
3925 if (!callback.is_null()) 3925 if (!callback.is_null())
3926 callback.Run(result); 3926 callback.Run(result);
3927 } 3927 }
3928 3928
3929 } // namespace gdata 3929 } // namespace gdata
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_documents_service.cc ('k') | chrome/browser/chromeos/gdata/gdata_operations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698