OLD | NEW |
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 "base/metrics/histogram.h" | 5 #include "base/metrics/histogram.h" |
6 #include "chrome/browser/chromeos/gdata/gdata_directory_service.h" | 6 #include "chrome/browser/chromeos/gdata/gdata_directory_service.h" |
| 7 #include "chrome/browser/chromeos/gdata/gdata_files.h" |
7 #include "chrome/browser/chromeos/gdata/gdata_wapi_feed_processor.h" | 8 #include "chrome/browser/chromeos/gdata/gdata_wapi_feed_processor.h" |
8 #include "content/public/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
9 | 10 |
10 using content::BrowserThread; | 11 using content::BrowserThread; |
11 | 12 |
12 namespace gdata { | 13 namespace gdata { |
13 | 14 |
14 namespace { | 15 namespace { |
15 | 16 |
16 // Recursively extracts the paths set of all sub-directories of |entry|. | 17 // Recursively extracts the paths set of all sub-directories of |entry|. |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 // If the code above fails to parse a feed, any GDataEntry instance | 322 // If the code above fails to parse a feed, any GDataEntry instance |
322 // added to |file_by_url| is not managed by a GDataDirectory instance, | 323 // added to |file_by_url| is not managed by a GDataDirectory instance, |
323 // so we need to explicitly release them here. | 324 // so we need to explicitly release them here. |
324 STLDeleteValues(file_map); | 325 STLDeleteValues(file_map); |
325 } | 326 } |
326 | 327 |
327 return error; | 328 return error; |
328 } | 329 } |
329 | 330 |
330 } // namespace gdata | 331 } // namespace gdata |
OLD | NEW |