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

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: Address asargent's comments 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
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | chrome/test/testing_profile.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 (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
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
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_
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | chrome/test/testing_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698