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 "apps/shell_window_geometry_cache.h" | 5 #include "apps/shell_window_geometry_cache.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
11 #include "chrome/browser/extensions/extension_prefs.h" | 11 #include "chrome/browser/extensions/extension_prefs.h" |
12 #include "chrome/browser/extensions/extension_prefs_factory.h" | 12 #include "chrome/browser/extensions/extension_prefs_factory.h" |
13 #include "chrome/browser/profiles/incognito_helpers.h" | 13 #include "chrome/browser/profiles/incognito_helpers.h" |
14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/common/extensions/extension.h" | |
16 #include "components/browser_context_keyed_service/browser_context_dependency_ma
nager.h" | 15 #include "components/browser_context_keyed_service/browser_context_dependency_ma
nager.h" |
17 #include "content/public/browser/notification_service.h" | 16 #include "content/public/browser/notification_service.h" |
18 #include "content/public/browser/notification_types.h" | 17 #include "content/public/browser/notification_types.h" |
| 18 #include "extensions/common/extension.h" |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 // The timeout in milliseconds before we'll persist window geometry to the | 22 // The timeout in milliseconds before we'll persist window geometry to the |
23 // StateStore. | 23 // StateStore. |
24 const int kSyncTimeoutMilliseconds = 1000; | 24 const int kSyncTimeoutMilliseconds = 1000; |
25 | 25 |
26 } // namespace | 26 } // namespace |
27 | 27 |
28 namespace apps { | 28 namespace apps { |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 return false; | 310 return false; |
311 } | 311 } |
312 | 312 |
313 content::BrowserContext* | 313 content::BrowserContext* |
314 ShellWindowGeometryCache::Factory::GetBrowserContextToUse( | 314 ShellWindowGeometryCache::Factory::GetBrowserContextToUse( |
315 content::BrowserContext* context) const { | 315 content::BrowserContext* context) const { |
316 return chrome::GetBrowserContextRedirectedInIncognito(context); | 316 return chrome::GetBrowserContextRedirectedInIncognito(context); |
317 } | 317 } |
318 | 318 |
319 } // namespace apps | 319 } // namespace apps |
OLD | NEW |