| 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/ui/simple_message_box.h" | 12 #include "chrome/browser/ui/simple_message_box.h" |
| 12 #include "content/public/browser/web_contents.h" | 13 #include "content/public/browser/web_contents.h" |
| 13 #include "content/public/browser/web_contents_view.h" | 14 #include "content/public/browser/web_contents_view.h" |
| 14 #include "extensions/common/extension.h" | 15 #include "extensions/common/extension.h" |
| 15 #include "grit/generated_resources.h" | 16 #include "grit/generated_resources.h" |
| 16 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
| 17 | 18 |
| 18 namespace extensions { | 19 namespace extensions { |
| 19 | 20 |
| 20 namespace { | 21 namespace { |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 static base::LazyInstance<ProfileKeyedAPIFactory<IncognitoConnectability> > | 118 static base::LazyInstance<ProfileKeyedAPIFactory<IncognitoConnectability> > |
| 118 g_factory = LAZY_INSTANCE_INITIALIZER; | 119 g_factory = LAZY_INSTANCE_INITIALIZER; |
| 119 | 120 |
| 120 // static | 121 // static |
| 121 ProfileKeyedAPIFactory<IncognitoConnectability>* | 122 ProfileKeyedAPIFactory<IncognitoConnectability>* |
| 122 IncognitoConnectability::GetFactoryInstance() { | 123 IncognitoConnectability::GetFactoryInstance() { |
| 123 return g_factory.Pointer(); | 124 return g_factory.Pointer(); |
| 124 } | 125 } |
| 125 | 126 |
| 126 } // namespace extensions | 127 } // namespace extensions |
| OLD | NEW |