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

Side by Side Diff: chrome/browser/extensions/test_extension_prefs.h

Issue 7717012: ntp4: default to 18 apps per page for new installs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove checks Created 9 years, 4 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_BROWSER_EXTENSIONS_TEST_EXTENSION_PREFS_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_PREFS_H_
6 #define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_PREFS_H_ 6 #define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_PREFS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 22 matching lines...) Expand all
33 const FilePath& temp_dir() const { return temp_dir_.path(); } 33 const FilePath& temp_dir() const { return temp_dir_.path(); }
34 34
35 // This will cause the ExtensionPrefs to be deleted and recreated, based on 35 // This will cause the ExtensionPrefs to be deleted and recreated, based on
36 // any existing backing file we had previously created. 36 // any existing backing file we had previously created.
37 void RecreateExtensionPrefs(); 37 void RecreateExtensionPrefs();
38 38
39 // Creates a new Extension with the given name in our temp dir, adds it to 39 // Creates a new Extension with the given name in our temp dir, adds it to
40 // our ExtensionPrefs, and returns it. 40 // our ExtensionPrefs, and returns it.
41 scoped_refptr<Extension> AddExtension(std::string name); 41 scoped_refptr<Extension> AddExtension(std::string name);
42 42
43 // As above, but the extension is an app.
44 scoped_refptr<Extension> AddApp(std::string name);
45
43 // Similar to AddExtension, but takes a dictionary with manifest values. 46 // Similar to AddExtension, but takes a dictionary with manifest values.
44 scoped_refptr<Extension> AddExtensionWithManifest( 47 scoped_refptr<Extension> AddExtensionWithManifest(
45 const base::DictionaryValue& manifest, Extension::Location location); 48 const base::DictionaryValue& manifest, Extension::Location location);
46 49
47 // Similar to AddExtension, but takes a dictionary with manifest values 50 // Similar to AddExtension, but takes a dictionary with manifest values
48 // and extension flags. 51 // and extension flags.
49 scoped_refptr<Extension> AddExtensionWithManifestAndFlags( 52 scoped_refptr<Extension> AddExtensionWithManifestAndFlags(
50 const base::DictionaryValue& manifest, 53 const base::DictionaryValue& manifest,
51 Extension::Location location, 54 Extension::Location location,
52 int extra_flags); 55 int extra_flags);
(...skipping 11 matching lines...) Expand all
64 FilePath extensions_dir_; 67 FilePath extensions_dir_;
65 scoped_ptr<PrefService> pref_service_; 68 scoped_ptr<PrefService> pref_service_;
66 scoped_ptr<ExtensionPrefs> prefs_; 69 scoped_ptr<ExtensionPrefs> prefs_;
67 scoped_ptr<ExtensionPrefValueMap> extension_pref_value_map_; 70 scoped_ptr<ExtensionPrefValueMap> extension_pref_value_map_;
68 71
69 private: 72 private:
70 DISALLOW_COPY_AND_ASSIGN(TestExtensionPrefs); 73 DISALLOW_COPY_AND_ASSIGN(TestExtensionPrefs);
71 }; 74 };
72 75
73 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_PREFS_H_ 76 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_PREFS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698