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

Side by Side Diff: chrome/browser/ui/global_error_service_factory.cc

Issue 7857014: patch for global error bubbles (view/gtk) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/global_error_service_factory.h"
6
7 #include "chrome/browser/profiles/profile_dependency_manager.h"
8 #include "chrome/browser/ui/global_error_service.h"
9
10 // static
11 GlobalErrorService* GlobalErrorServiceFactory::GetForProfile(Profile* profile) {
12 return static_cast<GlobalErrorService*>(
13 GetInstance()->GetServiceForProfile(profile, true));
14 }
15
16 // static
17 GlobalErrorServiceFactory* GlobalErrorServiceFactory::GetInstance() {
18 return Singleton<GlobalErrorServiceFactory>::get();
19 }
20
21 GlobalErrorServiceFactory::GlobalErrorServiceFactory()
22 : ProfileKeyedServiceFactory(
23 ProfileDependencyManager::GetInstance()) {
24 }
25
26 GlobalErrorServiceFactory::~GlobalErrorServiceFactory() {
27 }
28
29 ProfileKeyedService* GlobalErrorServiceFactory::BuildServiceInstanceFor(
30 Profile* profile) const {
31 return new GlobalErrorService();
32 }
33
34 bool GlobalErrorServiceFactory::ServiceRedirectedInIncognito() {
35 return true;
36 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/global_error_service_factory.h ('k') | chrome/browser/ui/gtk/browser_toolbar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698