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

Unified Diff: chrome/browser/chromeos/gdata/gdata.cc

Issue 9373001: net: Rename FileStream::Open/Close with OpenSync/CloseSync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 10 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: chrome/browser/chromeos/gdata/gdata.cc
diff --git a/chrome/browser/chromeos/gdata/gdata.cc b/chrome/browser/chromeos/gdata/gdata.cc
index fadad8500f10c00b379a83d7a8c325ac67c53970..248a912c9bd0381270ec32db374a5fa11f18e713 100644
--- a/chrome/browser/chromeos/gdata/gdata.cc
+++ b/chrome/browser/chromeos/gdata/gdata.cc
@@ -1202,8 +1202,9 @@ void DocumentsService::TestUpload() {
// Create a FileStream to make sure the file can be opened successfully.
scoped_ptr<net::FileStream> file(new net::FileStream(NULL));
- int rv = file->Open(file_path,
- base::PLATFORM_FILE_OPEN | base::PLATFORM_FILE_READ);
+ int rv = file->OpenSync(
+ file_path,
+ base::PLATFORM_FILE_OPEN | base::PLATFORM_FILE_READ);
if (rv != net::OK) {
// If the file can't be opened, we'll just upload an empty file.
DLOG(WARNING) << "Error opening \"" << file_path.value()
« no previous file with comments | « chrome/browser/bookmarks/bookmark_html_writer.cc ('k') | chrome/browser/chromeos/imageburner/burn_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698