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/ui/simple_message_box.h" | 11 #include "chrome/browser/ui/simple_message_box.h" |
12 #include "chrome/common/extensions/extension.h" | |
13 #include "content/public/browser/web_contents.h" | 12 #include "content/public/browser/web_contents.h" |
14 #include "content/public/browser/web_contents_view.h" | 13 #include "content/public/browser/web_contents_view.h" |
| 14 #include "extensions/common/extension.h" |
15 #include "grit/generated_resources.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 } |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 static base::LazyInstance<ProfileKeyedAPIFactory<IncognitoConnectability> > | 115 static base::LazyInstance<ProfileKeyedAPIFactory<IncognitoConnectability> > |
116 g_factory = LAZY_INSTANCE_INITIALIZER; | 116 g_factory = LAZY_INSTANCE_INITIALIZER; |
117 | 117 |
118 // static | 118 // static |
119 ProfileKeyedAPIFactory<IncognitoConnectability>* | 119 ProfileKeyedAPIFactory<IncognitoConnectability>* |
120 IncognitoConnectability::GetFactoryInstance() { | 120 IncognitoConnectability::GetFactoryInstance() { |
121 return &g_factory.Get(); | 121 return &g_factory.Get(); |
122 } | 122 } |
123 | 123 |
124 } // namespace extensions | 124 } // namespace extensions |
OLD | NEW |