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

Side by Side Diff: chrome/browser/protector/mock_protector_service.cc

Issue 11493003: Remove the protector service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix implicit ExtensionSystem -> TemplateURLService dependency Created 8 years 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) 2012 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/protector/mock_protector_service.h"
6
7 #include "chrome/browser/protector/protector_service_factory.h"
8 #include "googleurl/src/gurl.h"
9
10 namespace protector {
11
12 namespace {
13
14 ProfileKeyedService* BuildMockProtectorService(Profile* profile) {
15 return new MockProtectorService(profile);
16 }
17
18 } // namespace
19
20 // static
21 MockProtectorService* MockProtectorService::BuildForProfile(Profile* profile) {
22 return static_cast<MockProtectorService*>(
23 ProtectorServiceFactory::GetInstance()->SetTestingFactoryAndUse(
24 profile, BuildMockProtectorService));
25 }
26
27 MockProtectorService::MockProtectorService(Profile* profile)
28 : ProtectorService(profile) {
29 }
30
31 MockProtectorService::~MockProtectorService() {
32 }
33
34 } // namespace protector
OLDNEW
« no previous file with comments | « chrome/browser/protector/mock_protector_service.h ('k') | chrome/browser/protector/mock_setting_change.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698