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

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

Issue 10833006: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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
« no previous file with comments | « webkit/dom_storage/dom_storage_session.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "webkit/fileapi/obfuscated_file_util.h" 5 #include "webkit/fileapi/obfuscated_file_util.h"
6 6
7 #include <queue> 7 #include <queue>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 FileSystemDirectoryDatabase* db, 119 FileSystemDirectoryDatabase* db,
120 FileSystemOperationContext* context, 120 FileSystemOperationContext* context,
121 ObfuscatedFileUtil* obfuscated_file_util, 121 ObfuscatedFileUtil* obfuscated_file_util,
122 const FileSystemURL& root_url, 122 const FileSystemURL& root_url,
123 bool recursive) 123 bool recursive)
124 : db_(db), 124 : db_(db),
125 context_(context), 125 context_(context),
126 obfuscated_file_util_(obfuscated_file_util), 126 obfuscated_file_util_(obfuscated_file_util),
127 origin_(root_url.origin()), 127 origin_(root_url.origin()),
128 type_(root_url.type()), 128 type_(root_url.type()),
129 recursive_(recursive) { 129 recursive_(recursive),
130 current_file_id_(0) {
130 FilePath root_virtual_path = root_url.path(); 131 FilePath root_virtual_path = root_url.path();
131 FileId file_id; 132 FileId file_id;
132 133
133 if (!db_->GetFileWithPath(root_virtual_path, &file_id)) 134 if (!db_->GetFileWithPath(root_virtual_path, &file_id))
134 return; 135 return;
135 136
136 FileRecord record = { file_id, root_virtual_path }; 137 FileRecord record = { file_id, root_virtual_path };
137 recurse_queue_.push(record); 138 recurse_queue_.push(record);
138 } 139 }
139 140
(...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after
1395 error = NativeFileUtil::CreateDirectory( 1396 error = NativeFileUtil::CreateDirectory(
1396 new_local_path, false /* exclusive */, false /* recursive */); 1397 new_local_path, false /* exclusive */, false /* recursive */);
1397 if (error != base::PLATFORM_FILE_OK) 1398 if (error != base::PLATFORM_FILE_OK)
1398 return error; 1399 return error;
1399 1400
1400 *local_path = new_local_path.AppendASCII(StringPrintf("%08" PRId64, number)); 1401 *local_path = new_local_path.AppendASCII(StringPrintf("%08" PRId64, number));
1401 return base::PLATFORM_FILE_OK; 1402 return base::PLATFORM_FILE_OK;
1402 } 1403 }
1403 1404
1404 } // namespace fileapi 1405 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/dom_storage/dom_storage_session.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698