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