OLD | NEW |
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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 void CreateTemplateURLModel(); | 122 void CreateTemplateURLModel(); |
123 | 123 |
124 // Sets the TemplateURLModel. Takes ownership of it. | 124 // Sets the TemplateURLModel. Takes ownership of it. |
125 void SetTemplateURLModel(TemplateURLModel* model); | 125 void SetTemplateURLModel(TemplateURLModel* model); |
126 | 126 |
127 // Creates an ExtensionService initialized with the testing profile and | 127 // Creates an ExtensionService initialized with the testing profile and |
128 // returns it. The profile keeps its own copy of a scoped_refptr to the | 128 // returns it. The profile keeps its own copy of a scoped_refptr to the |
129 // ExtensionService to make sure that is still alive to be notified when the | 129 // ExtensionService to make sure that is still alive to be notified when the |
130 // profile is destroyed. | 130 // profile is destroyed. |
131 ExtensionService* CreateExtensionService(const CommandLine* command_line, | 131 ExtensionService* CreateExtensionService(const CommandLine* command_line, |
132 const FilePath& install_directory); | 132 const FilePath& install_directory, |
| 133 bool autoupdate_enabled); |
133 | 134 |
134 TestingPrefService* GetTestingPrefService(); | 135 TestingPrefService* GetTestingPrefService(); |
135 | 136 |
136 virtual ProfileId GetRuntimeId(); | 137 virtual ProfileId GetRuntimeId(); |
137 | 138 |
138 virtual FilePath GetPath(); | 139 virtual FilePath GetPath(); |
139 | 140 |
140 // Sets whether we're incognito. Default is false. | 141 // Sets whether we're incognito. Default is false. |
141 void set_incognito(bool incognito) { | 142 void set_incognito(bool incognito) { |
142 incognito_ = incognito; | 143 incognito_ = incognito; |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 explicit DerivedTestingProfile(Profile* profile); | 417 explicit DerivedTestingProfile(Profile* profile); |
417 virtual ~DerivedTestingProfile(); | 418 virtual ~DerivedTestingProfile(); |
418 | 419 |
419 virtual ProfileId GetRuntimeId(); | 420 virtual ProfileId GetRuntimeId(); |
420 | 421 |
421 protected: | 422 protected: |
422 Profile* original_profile_; | 423 Profile* original_profile_; |
423 }; | 424 }; |
424 | 425 |
425 #endif // CHROME_TEST_TESTING_PROFILE_H_ | 426 #endif // CHROME_TEST_TESTING_PROFILE_H_ |
OLD | NEW |