| 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/extensions/default_app_order.h" | 5 #include "chrome/browser/chromeos/extensions/default_app_order.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 const char* const kDefaultAppOrder[] = { | 39 const char* const kDefaultAppOrder[] = { |
| 40 extension_misc::kChromeAppId, | 40 extension_misc::kChromeAppId, |
| 41 arc::kPlayStoreAppId, | 41 arc::kPlayStoreAppId, |
| 42 extensions::kWebStoreAppId, | 42 extensions::kWebStoreAppId, |
| 43 "nplnnjkbeijcggmpdcecpabgbjgeiedc", // Play Games | 43 "nplnnjkbeijcggmpdcecpabgbjgeiedc", // Play Games |
| 44 genius_app::kGeniusAppId, | 44 genius_app::kGeniusAppId, |
| 45 extension_misc::kYoutubeAppId, | 45 extension_misc::kYoutubeAppId, |
| 46 extension_misc::kGmailAppId, | 46 extension_misc::kGmailAppId, |
| 47 "ejjicmeblgpmajnghnpcppodonldlgfn", // Calendar | 47 "ejjicmeblgpmajnghnpcppodonldlgfn", // Calendar |
| 48 "kjebfhglflhjjjiceimfkgicifkhjlnm", // Scratchpad | |
| 49 "lneaknkopdijkpnocmklfnjbeapigfbh", // Google Maps | 48 "lneaknkopdijkpnocmklfnjbeapigfbh", // Google Maps |
| 50 "apdfllckaahabafndbhieahigkjlhalf", // Drive | 49 "apdfllckaahabafndbhieahigkjlhalf", // Drive |
| 51 extension_misc::kGoogleDocAppId, | 50 extension_misc::kGoogleDocAppId, |
| 52 extension_misc::kGoogleSheetsAppId, | 51 extension_misc::kGoogleSheetsAppId, |
| 53 extension_misc::kGoogleSlidesAppId, | 52 extension_misc::kGoogleSlidesAppId, |
| 54 "dlppkpafhbajpcmmoheippocdidnckmm", // Google+ | 53 "dlppkpafhbajpcmmoheippocdidnckmm", // Google+ |
| 55 "hcglmfcclpfgljeaiahehebeoaiicbko", // Google Photos | 54 "hcglmfcclpfgljeaiahehebeoaiicbko", // Google Photos |
| 56 "hhaomjibdihmijegdhdafkllkbggdgoj", // Files | 55 "hhaomjibdihmijegdhdafkllkbggdgoj", // Files |
| 57 extension_misc::kGooglePlayMusicAppId, | 56 extension_misc::kGooglePlayMusicAppId, |
| 58 "mmimngoggfoobjdlefbcabngfnmieonb", // Play Books | 57 "mmimngoggfoobjdlefbcabngfnmieonb", // Play Books |
| 59 "gdijeikdkaembjbdobgfkoidjkpbmlkd", // Play Movies & TV | 58 "gdijeikdkaembjbdobgfkoidjkpbmlkd", // Play Movies & TV |
| 60 "fobcpibfeplaikcclojfdhfdmbbeofai", // Games | |
| 61 "joodangkbfjnajiiifokapkpmhfnpleo", // Calculator | 59 "joodangkbfjnajiiifokapkpmhfnpleo", // Calculator |
| 62 "hfhhnacclhffhdffklopdkcgdhifgngh", // Camera | 60 "hfhhnacclhffhdffklopdkcgdhifgngh", // Camera |
| 63 "gbchcmhmhahfdphkhkmpfmihenigjmpp", // Chrome Remote Desktop | 61 "gbchcmhmhahfdphkhkmpfmihenigjmpp", // Chrome Remote Desktop |
| 64 }; | 62 }; |
| 65 | 63 |
| 66 // Reads external ordinal json file and returned the parsed value. Returns NULL | 64 // Reads external ordinal json file and returned the parsed value. Returns NULL |
| 67 // if the file does not exist or could not be parsed properly. Caller takes | 65 // if the file does not exist or could not be parsed properly. Caller takes |
| 68 // ownership of the returned value. | 66 // ownership of the returned value. |
| 69 std::unique_ptr<base::ListValue> ReadExternalOrdinalFile( | 67 std::unique_ptr<base::ListValue> ReadExternalOrdinalFile( |
| 70 const base::FilePath& path) { | 68 const base::FilePath& path) { |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 std::string GetOemAppsFolderName() { | 204 std::string GetOemAppsFolderName() { |
| 207 // |loader_instance| could be NULL for test. | 205 // |loader_instance| could be NULL for test. |
| 208 if (!loader_instance) | 206 if (!loader_instance) |
| 209 return std::string(); | 207 return std::string(); |
| 210 else | 208 else |
| 211 return loader_instance->GetOemAppsFolderName(); | 209 return loader_instance->GetOemAppsFolderName(); |
| 212 } | 210 } |
| 213 | 211 |
| 214 } // namespace default_app_order | 212 } // namespace default_app_order |
| 215 } // namespace chromeos | 213 } // namespace chromeos |
| OLD | NEW |