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 "chrome/browser/chromeos/drive/drive_app_registry.h" | 5 #include "chrome/browser/chromeos/drive/drive_app_registry.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
14 #include "chrome/browser/chromeos/drive/file_system_util.h" | 14 #include "chrome/browser/chromeos/drive/file_system_util.h" |
15 #include "chrome/browser/chromeos/drive/job_scheduler.h" | 15 #include "chrome/browser/chromeos/drive/job_scheduler.h" |
16 #include "chrome/browser/google_apis/drive_api_parser.h" | |
17 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
| 17 #include "google_apis/drive/drive_api_parser.h" |
18 | 18 |
19 using content::BrowserThread; | 19 using content::BrowserThread; |
20 | 20 |
21 namespace drive { | 21 namespace drive { |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 // Webstore URL prefix. | 25 // Webstore URL prefix. |
26 const char kStoreProductUrl[] = "https://chrome.google.com/webstore/"; | 26 const char kStoreProductUrl[] = "https://chrome.google.com/webstore/"; |
27 | 27 |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 for (google_apis::InstalledApp::IconList::const_reverse_iterator | 248 for (google_apis::InstalledApp::IconList::const_reverse_iterator |
249 iter = sorted_icons.rbegin(); | 249 iter = sorted_icons.rbegin(); |
250 iter != sorted_icons.rend() && iter->first >= preferred_size; ++iter) { | 250 iter != sorted_icons.rend() && iter->first >= preferred_size; ++iter) { |
251 result = iter->second; | 251 result = iter->second; |
252 } | 252 } |
253 return result; | 253 return result; |
254 } | 254 } |
255 | 255 |
256 } // namespace util | 256 } // namespace util |
257 } // namespace drive | 257 } // namespace drive |
OLD | NEW |