Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_TOOLBAR_COMPONENT_TOOLBAR_ACTIONS_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_COMPONENT_TOOLBAR_ACTIONS_FACTORY_H_ |
| 6 #define CHROME_BROWSER_UI_TOOLBAR_COMPONENT_TOOLBAR_ACTIONS_FACTORY_H_ | 6 #define CHROME_BROWSER_UI_TOOLBAR_COMPONENT_TOOLBAR_ACTIONS_FACTORY_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 49 | 49 |
| 50 // Synchronizes component action visibility and extension install status. | 50 // Synchronizes component action visibility and extension install status. |
| 51 virtual void HandleComponentMigrations( | 51 virtual void HandleComponentMigrations( |
| 52 extensions::ComponentMigrationHelper* helper, | 52 extensions::ComponentMigrationHelper* helper, |
| 53 Profile* profile) const; | 53 Profile* profile) const; |
| 54 | 54 |
| 55 // Sets the factory to use for testing purposes. | 55 // Sets the factory to use for testing purposes. |
| 56 // Ownership remains with the caller. | 56 // Ownership remains with the caller. |
| 57 static void SetTestingFactory(ComponentToolbarActionsFactory* factory); | 57 static void SetTestingFactory(ComponentToolbarActionsFactory* factory); |
| 58 | 58 |
| 59 // Returns whether the given ID belongs to a component action. | |
| 60 static bool IsComponentActionId(const std::string& id); | |
|
Devlin
2016/08/02 20:18:51
Is this used?
takumif
2016/08/03 22:03:50
No. Removing.
| |
| 61 | |
| 59 private: | 62 private: |
| 60 DISALLOW_COPY_AND_ASSIGN(ComponentToolbarActionsFactory); | 63 DISALLOW_COPY_AND_ASSIGN(ComponentToolbarActionsFactory); |
| 61 }; | 64 }; |
| 62 | 65 |
| 63 #endif // CHROME_BROWSER_UI_TOOLBAR_COMPONENT_TOOLBAR_ACTIONS_FACTORY_H_ | 66 #endif // CHROME_BROWSER_UI_TOOLBAR_COMPONENT_TOOLBAR_ACTIONS_FACTORY_H_ |
| OLD | NEW |