Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Side by Side Diff: chrome/browser/extensions/api/messaging/incognito_connectability.cc

Issue 179243002: Change ProfileKeyedAPIFactory to build instances with BrowserContext instead of Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: locationbarview Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/location/location_api.cc ('k') | chrome/browser/extensions/api/processes/processes_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698