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/extensions/api/messaging/incognito_connectability.h" | 5 #include "chrome/browser/extensions/api/messaging/incognito_connectability.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/browser/ui/simple_message_box.h" | 12 #include "chrome/browser/ui/simple_message_box.h" |
| 13 #include "chrome/grit/generated_resources.h" |
13 #include "content/public/browser/web_contents.h" | 14 #include "content/public/browser/web_contents.h" |
14 #include "extensions/common/extension.h" | 15 #include "extensions/common/extension.h" |
15 #include "grit/generated_resources.h" | |
16 #include "ui/base/l10n/l10n_util.h" | 16 #include "ui/base/l10n/l10n_util.h" |
17 | 17 |
18 namespace extensions { | 18 namespace extensions { |
19 | 19 |
20 namespace { | 20 namespace { |
21 IncognitoConnectability::ScopedAlertTracker::Mode g_alert_mode = | 21 IncognitoConnectability::ScopedAlertTracker::Mode g_alert_mode = |
22 IncognitoConnectability::ScopedAlertTracker::INTERACTIVE; | 22 IncognitoConnectability::ScopedAlertTracker::INTERACTIVE; |
23 int g_alert_count = 0; | 23 int g_alert_count = 0; |
24 } | 24 } |
25 | 25 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 BrowserContextKeyedAPIFactory<IncognitoConnectability> > g_factory = | 116 BrowserContextKeyedAPIFactory<IncognitoConnectability> > g_factory = |
117 LAZY_INSTANCE_INITIALIZER; | 117 LAZY_INSTANCE_INITIALIZER; |
118 | 118 |
119 // static | 119 // static |
120 BrowserContextKeyedAPIFactory<IncognitoConnectability>* | 120 BrowserContextKeyedAPIFactory<IncognitoConnectability>* |
121 IncognitoConnectability::GetFactoryInstance() { | 121 IncognitoConnectability::GetFactoryInstance() { |
122 return g_factory.Pointer(); | 122 return g_factory.Pointer(); |
123 } | 123 } |
124 | 124 |
125 } // namespace extensions | 125 } // namespace extensions |
OLD | NEW |