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

Side by Side Diff: webkit/fileapi/file_system_directory_database.cc

Issue 7215027: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "webkit/fileapi/file_system_directory_database.h" 5 #include "webkit/fileapi/file_system_directory_database.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include "base/pickle.h" 9 #include "base/pickle.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 std::string GetFileLookupKey( 103 std::string GetFileLookupKey(
104 fileapi::FileSystemDirectoryDatabase::FileId file_id) { 104 fileapi::FileSystemDirectoryDatabase::FileId file_id) {
105 return base::Int64ToString(file_id); 105 return base::Int64ToString(file_id);
106 } 106 }
107 107
108 } // namespace 108 } // namespace
109 109
110 namespace fileapi { 110 namespace fileapi {
111 111
112 FileSystemDirectoryDatabase::FileInfo::FileInfo() { 112 FileSystemDirectoryDatabase::FileInfo::FileInfo() : parent_id(0) {
113 } 113 }
114 114
115 FileSystemDirectoryDatabase::FileInfo::~FileInfo() { 115 FileSystemDirectoryDatabase::FileInfo::~FileInfo() {
116 } 116 }
117 117
118 FileSystemDirectoryDatabase::FileSystemDirectoryDatabase(const FilePath& path) { 118 FileSystemDirectoryDatabase::FileSystemDirectoryDatabase(const FilePath& path) {
119 #if defined(OS_POSIX) 119 #if defined(OS_POSIX)
120 path_ = path.value(); 120 path_ = path.value();
121 #elif defined(OS_WIN) 121 #elif defined(OS_WIN)
122 path_ = base::SysWideToUTF8(path.value()); 122 path_ = base::SysWideToUTF8(path.value());
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 return true; 535 return true;
536 } 536 }
537 537
538 void FileSystemDirectoryDatabase::HandleError(leveldb::Status status) { 538 void FileSystemDirectoryDatabase::HandleError(leveldb::Status status) {
539 LOG(ERROR) << "FileSystemDirectoryDatabase failed with error: " << 539 LOG(ERROR) << "FileSystemDirectoryDatabase failed with error: " <<
540 status.ToString(); 540 status.ToString();
541 db_.reset(); 541 db_.reset();
542 } 542 }
543 543
544 } // namespace fileapi 544 } // namespace fileapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698