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/extensions/api/terminal/terminal_extension_helper.h" | 5 #include "chrome/browser/extensions/api/terminal/terminal_extension_helper.h" |
6 | 6 |
7 #include "chrome/browser/extensions/extension_service.h" | 7 #include "chrome/browser/extensions/extension_service.h" |
8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
9 #include "chrome/common/extensions/extension.h" | 9 #include "chrome/common/extensions/extension.h" |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 kPossibleAppIds[x], false); | 30 kPossibleAppIds[x], false); |
31 if (extension) | 31 if (extension) |
32 return extension; | 32 return extension; |
33 } | 33 } |
34 | 34 |
35 return NULL; | 35 return NULL; |
36 } | 36 } |
37 | 37 |
38 } // namespace | 38 } // namespace |
39 | 39 |
| 40 namespace extensions { |
| 41 |
40 GURL TerminalExtensionHelper::GetCroshExtensionURL(Profile* profile) { | 42 GURL TerminalExtensionHelper::GetCroshExtensionURL(Profile* profile) { |
41 const extensions::Extension* extension = GetTerminalExtension(profile); | 43 const extensions::Extension* extension = GetTerminalExtension(profile); |
42 if (!extension) | 44 if (!extension) |
43 return GURL(); | 45 return GURL(); |
44 | 46 |
45 return extension->GetResourceURL(kCroshExtensionEntryPoint); | 47 return extension->GetResourceURL(kCroshExtensionEntryPoint); |
46 } | 48 } |
| 49 |
| 50 } // namespace extensions |
OLD | NEW |