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

Side by Side Diff: chrome/test/testing_profile.h

Issue 6852029: [Sync] Move some extension-sync-related logic to ExtensionService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mac compile error Created 9 years, 8 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 (c) 2011 The Chromium Authors. All rights reserved. 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 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_TEST_TESTING_PROFILE_H_ 5 #ifndef CHROME_TEST_TESTING_PROFILE_H_
6 #define CHROME_TEST_TESTING_PROFILE_H_ 6 #define CHROME_TEST_TESTING_PROFILE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 void CreateTemplateURLModel(); 118 void CreateTemplateURLModel();
119 119
120 // Sets the TemplateURLModel. Takes ownership of it. 120 // Sets the TemplateURLModel. Takes ownership of it.
121 void SetTemplateURLModel(TemplateURLModel* model); 121 void SetTemplateURLModel(TemplateURLModel* model);
122 122
123 // Creates an ExtensionService initialized with the testing profile and 123 // Creates an ExtensionService initialized with the testing profile and
124 // returns it. The profile keeps its own copy of a scoped_refptr to the 124 // returns it. The profile keeps its own copy of a scoped_refptr to the
125 // ExtensionService to make sure that is still alive to be notified when the 125 // ExtensionService to make sure that is still alive to be notified when the
126 // profile is destroyed. 126 // profile is destroyed.
127 ExtensionService* CreateExtensionService(const CommandLine* command_line, 127 ExtensionService* CreateExtensionService(const CommandLine* command_line,
128 const FilePath& install_directory); 128 const FilePath& install_directory,
129 bool autoupdate_enabled);
129 130
130 TestingPrefService* GetTestingPrefService(); 131 TestingPrefService* GetTestingPrefService();
131 132
132 virtual ProfileId GetRuntimeId(); 133 virtual ProfileId GetRuntimeId();
133 134
134 virtual FilePath GetPath(); 135 virtual FilePath GetPath();
135 136
136 // Sets whether we're incognito. Default is false. 137 // Sets whether we're incognito. Default is false.
137 void set_incognito(bool incognito) { 138 void set_incognito(bool incognito) {
138 incognito_ = incognito; 139 incognito_ = incognito;
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 explicit DerivedTestingProfile(Profile* profile); 412 explicit DerivedTestingProfile(Profile* profile);
412 virtual ~DerivedTestingProfile(); 413 virtual ~DerivedTestingProfile();
413 414
414 virtual ProfileId GetRuntimeId(); 415 virtual ProfileId GetRuntimeId();
415 416
416 protected: 417 protected:
417 Profile* original_profile_; 418 Profile* original_profile_;
418 }; 419 };
419 420
420 #endif // CHROME_TEST_TESTING_PROFILE_H_ 421 #endif // CHROME_TEST_TESTING_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698