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

Side by Side Diff: chrome/browser/ui/webui/extensions/extension_settings_browsertest.h

Issue 916243002: Enable keyboard shortcuts for chrome://extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix license comment and Rebase Created 5 years, 10 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_BROWSERTEST_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_BROWSERTEST_H_
6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_BROWSERTEST_H_ 6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_BROWSERTEST_H_
7 7
8 #include "chrome/browser/extensions/extension_test_notification_observer.h" 8 #include "chrome/browser/extensions/extension_test_notification_observer.h"
9 #include "chrome/test/base/web_ui_browser_test.h" 9 #include "chrome/test/base/web_ui_browser_test.h"
10 #include "extensions/browser/test_management_policy.h" 10 #include "extensions/browser/test_management_policy.h"
(...skipping 12 matching lines...) Expand all
23 Profile* GetProfile(); 23 Profile* GetProfile();
24 24
25 const std::string& last_loaded_extension_id() { 25 const std::string& last_loaded_extension_id() {
26 return observer_->last_loaded_extension_id(); 26 return observer_->last_loaded_extension_id();
27 } 27 }
28 28
29 void SetUpOnMainThread() override; 29 void SetUpOnMainThread() override;
30 30
31 void InstallGoodExtension(); 31 void InstallGoodExtension();
32 32
33 void InstallErrorsExtension();
34
33 void AddManagedPolicyProvider(); 35 void AddManagedPolicyProvider();
34 36
35 private: 37 private:
36 bool WaitForExtensionViewsToLoad(); 38 bool WaitForExtensionViewsToLoad();
37 const extensions::Extension* LoadUnpackedExtension( 39 const extensions::Extension* InstallUnpackedExtension(
38 const base::FilePath& path); 40 const base::FilePath& path, const char* id);
39 const extensions::Extension* InstallExtension(const base::FilePath& path); 41 const extensions::Extension* InstallExtension(const base::FilePath& path);
40 42
41 scoped_ptr<ExtensionTestNotificationObserver> observer_; 43 scoped_ptr<ExtensionTestNotificationObserver> observer_;
42 44
43 // The default profile to be used. 45 // The default profile to be used.
44 Profile* profile_; 46 Profile* profile_;
45 47
46 // Used to simulate managed extensions (by being registered as a provider). 48 // Used to simulate managed extensions (by being registered as a provider).
47 extensions::TestManagementPolicyProvider policy_provider_; 49 extensions::TestManagementPolicyProvider policy_provider_;
48 50
49 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsUIBrowserTest); 51 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsUIBrowserTest);
50 }; 52 };
51 53
52 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_BROWSERTEST_H_ 54 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_BROWSERTEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698