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/ui/ash/launcher/chrome_launcher_controller_per_app.h" | 5 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "ash/ash_switches.h" | 9 #include "ash/ash_switches.h" |
10 #include "ash/launcher/launcher_model.h" | 10 #include "ash/launcher/launcher_model.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 #include "chrome/browser/ui/browser_window.h" | 46 #include "chrome/browser/ui/browser_window.h" |
47 #include "chrome/browser/ui/extensions/application_launch.h" | 47 #include "chrome/browser/ui/extensions/application_launch.h" |
48 #include "chrome/browser/ui/extensions/extension_enable_flow.h" | 48 #include "chrome/browser/ui/extensions/extension_enable_flow.h" |
49 #include "chrome/browser/ui/host_desktop.h" | 49 #include "chrome/browser/ui/host_desktop.h" |
50 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 50 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
51 #include "chrome/browser/web_applications/web_app.h" | 51 #include "chrome/browser/web_applications/web_app.h" |
52 #include "chrome/common/chrome_notification_types.h" | 52 #include "chrome/common/chrome_notification_types.h" |
53 #include "chrome/common/chrome_switches.h" | 53 #include "chrome/common/chrome_switches.h" |
54 #include "chrome/common/extensions/api/icons/icons_handler.h" | 54 #include "chrome/common/extensions/api/icons/icons_handler.h" |
55 #include "chrome/common/extensions/extension.h" | 55 #include "chrome/common/extensions/extension.h" |
56 #include "chrome/common/extensions/extension_resource.h" | |
57 #include "chrome/common/pref_names.h" | 56 #include "chrome/common/pref_names.h" |
58 #include "chrome/common/url_constants.h" | 57 #include "chrome/common/url_constants.h" |
59 #include "content/public/browser/navigation_entry.h" | 58 #include "content/public/browser/navigation_entry.h" |
60 #include "content/public/browser/notification_service.h" | 59 #include "content/public/browser/notification_service.h" |
61 #include "content/public/browser/web_contents.h" | 60 #include "content/public/browser/web_contents.h" |
| 61 #include "extensions/common/extension_resource.h" |
62 #include "extensions/common/url_pattern.h" | 62 #include "extensions/common/url_pattern.h" |
63 #include "grit/ash_resources.h" | 63 #include "grit/ash_resources.h" |
64 #include "grit/chromium_strings.h" | 64 #include "grit/chromium_strings.h" |
65 #include "grit/generated_resources.h" | 65 #include "grit/generated_resources.h" |
66 #include "grit/theme_resources.h" | 66 #include "grit/theme_resources.h" |
67 #include "grit/ui_resources.h" | 67 #include "grit/ui_resources.h" |
68 #include "ui/aura/root_window.h" | 68 #include "ui/aura/root_window.h" |
69 #include "ui/aura/window.h" | 69 #include "ui/aura/window.h" |
70 #include "ui/base/l10n/l10n_util.h" | 70 #include "ui/base/l10n/l10n_util.h" |
71 | 71 |
(...skipping 1480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1552 GetLauncherIDForAppID(web_app::GetExtensionIdFromApplicationName( | 1552 GetLauncherIDForAppID(web_app::GetExtensionIdFromApplicationName( |
1553 browser->app_name())) <= 0)); | 1553 browser->app_name())) <= 0)); |
1554 } | 1554 } |
1555 | 1555 |
1556 bool ChromeLauncherControllerPerApp::IsIncognito( | 1556 bool ChromeLauncherControllerPerApp::IsIncognito( |
1557 content::WebContents* web_contents) const { | 1557 content::WebContents* web_contents) const { |
1558 const Profile* profile = | 1558 const Profile* profile = |
1559 Profile::FromBrowserContext(web_contents->GetBrowserContext()); | 1559 Profile::FromBrowserContext(web_contents->GetBrowserContext()); |
1560 return profile->IsOffTheRecord() && !profile->IsGuestSession(); | 1560 return profile->IsOffTheRecord() && !profile->IsGuestSession(); |
1561 } | 1561 } |
OLD | NEW |