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

Side by Side Diff: storage/common/fileapi/file_system_util.cc

Issue 1139323003: Discard duplicate includes of files from storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
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 "storage/common/fileapi/file_system_util.h" 5 #include "storage/common/fileapi/file_system_util.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/files/file_path.h"
10 #include "base/logging.h" 9 #include "base/logging.h"
11 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
12 #include "base/strings/sys_string_conversions.h" 11 #include "base/strings/sys_string_conversions.h"
13 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
14 #include "net/base/escape.h" 13 #include "net/base/escape.h"
15 #include "net/base/net_errors.h" 14 #include "net/base/net_errors.h"
16 #include "storage/common/database/database_identifier.h" 15 #include "storage/common/database/database_identifier.h"
17 #include "url/gurl.h" 16 #include "url/gurl.h"
18 17
19 namespace storage { 18 namespace storage {
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 return base::File::FILE_ERROR_ABORT; 499 return base::File::FILE_ERROR_ABORT;
501 case net::ERR_ADDRESS_INVALID: 500 case net::ERR_ADDRESS_INVALID:
502 case net::ERR_INVALID_URL: 501 case net::ERR_INVALID_URL:
503 return base::File::FILE_ERROR_INVALID_URL; 502 return base::File::FILE_ERROR_INVALID_URL;
504 default: 503 default:
505 return base::File::FILE_ERROR_FAILED; 504 return base::File::FILE_ERROR_FAILED;
506 } 505 }
507 } 506 }
508 507
509 } // namespace storage 508 } // namespace storage
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698