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

Side by Side Diff: chrome/browser/extensions/api/settings_private/settings_private_delegate_factory.h

Issue 2499093002: Fix Guest Mode errors in MD Settings by using the incognito context. (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/settings_private/settings_private_delegate_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_DELEGATE _FACTORY_H__ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_DELEGATE _FACTORY_H__
6 #define CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_DELEGATE _FACTORY_H__ 6 #define CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_DELEGATE _FACTORY_H__
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "components/keyed_service/content/browser_context_keyed_service_factory .h" 10 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
(...skipping 16 matching lines...) Expand all
27 27
28 private: 28 private:
29 friend struct base::DefaultSingletonTraits<SettingsPrivateDelegateFactory>; 29 friend struct base::DefaultSingletonTraits<SettingsPrivateDelegateFactory>;
30 30
31 SettingsPrivateDelegateFactory(); 31 SettingsPrivateDelegateFactory();
32 ~SettingsPrivateDelegateFactory() override; 32 ~SettingsPrivateDelegateFactory() override;
33 33
34 // BrowserContextKeyedBaseFactory implementation. 34 // BrowserContextKeyedBaseFactory implementation.
35 KeyedService* BuildServiceInstanceFor( 35 KeyedService* BuildServiceInstanceFor(
36 content::BrowserContext* profile) const override; 36 content::BrowserContext* profile) const override;
37 content::BrowserContext* GetBrowserContextToUse(
38 content::BrowserContext* context) const override;
37 39
38 DISALLOW_COPY_AND_ASSIGN(SettingsPrivateDelegateFactory); 40 DISALLOW_COPY_AND_ASSIGN(SettingsPrivateDelegateFactory);
39 }; 41 };
40 42
41 } // namespace extensions 43 } // namespace extensions
42 44
43 #endif // CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_DELEG ATE_FACTORY_H__ 45 #endif // CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_DELEG ATE_FACTORY_H__
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/settings_private/settings_private_delegate_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698