| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/apps/chrome_apps_client.h" | 5 #include "chrome/browser/apps/chrome_apps_client.h" |
| 6 | 6 |
| 7 #include "base/memory/singleton.h" | 7 #include "base/memory/singleton.h" |
| 8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
| 9 #include "chrome/browser/profiles/profile_manager.h" | 9 #include "chrome/browser/profiles/profile_manager.h" |
| 10 #include "chrome/browser/ui/apps/app_metro_infobar_delegate_win.h" | 10 #include "chrome/browser/ui/apps/app_metro_infobar_delegate_win.h" |
| 11 #include "chrome/common/extensions/extension.h" | 11 #include "extensions/common/extension.h" |
| 12 | 12 |
| 13 #if defined(OS_WIN) | 13 #if defined(OS_WIN) |
| 14 #include "win8/util/win8_util.h" | 14 #include "win8/util/win8_util.h" |
| 15 #endif | 15 #endif |
| 16 | 16 |
| 17 ChromeAppsClient::ChromeAppsClient() {} | 17 ChromeAppsClient::ChromeAppsClient() {} |
| 18 | 18 |
| 19 ChromeAppsClient::~ChromeAppsClient() {} | 19 ChromeAppsClient::~ChromeAppsClient() {} |
| 20 | 20 |
| 21 // static | 21 // static |
| (...skipping 18 matching lines...) Expand all Loading... |
| 40 if (win8::IsSingleWindowMetroMode()) { | 40 if (win8::IsSingleWindowMetroMode()) { |
| 41 AppMetroInfoBarDelegateWin::Create( | 41 AppMetroInfoBarDelegateWin::Create( |
| 42 Profile::FromBrowserContext(context), | 42 Profile::FromBrowserContext(context), |
| 43 AppMetroInfoBarDelegateWin::LAUNCH_PACKAGED_APP, | 43 AppMetroInfoBarDelegateWin::LAUNCH_PACKAGED_APP, |
| 44 extension->id()); | 44 extension->id()); |
| 45 return false; | 45 return false; |
| 46 } | 46 } |
| 47 #endif | 47 #endif |
| 48 return true; | 48 return true; |
| 49 } | 49 } |
| OLD | NEW |