| Index: chrome/browser/cocoa/keyword_editor_cocoa_controller.h
|
| diff --git a/chrome/browser/cocoa/keyword_editor_cocoa_controller.h b/chrome/browser/cocoa/keyword_editor_cocoa_controller.h
|
| index 5f74a20eea33274857f5e5649afa3baa244d5ce5..213cf78e9e4ed3383c369536da11c40a6095af34 100644
|
| --- a/chrome/browser/cocoa/keyword_editor_cocoa_controller.h
|
| +++ b/chrome/browser/cocoa/keyword_editor_cocoa_controller.h
|
| @@ -55,7 +55,11 @@ class KeywordEditorModelObserver : public TemplateURLModelObserver,
|
| }
|
| @property (readonly) KeywordEditorController* controller;
|
|
|
| -- (id)initWithProfile:(Profile*)profile;
|
| +// Show the keyword editor associated with the given profile (or the
|
| +// original profile if this is an incognito profile). If no keyword
|
| +// editor exists for this profile, create one and show it. Any
|
| +// resulting editor releases itself when closed.
|
| ++ (void)showKeywordEditor:(Profile*)profile;
|
|
|
| // Message forwarded by KeywordEditorModelObserver.
|
| - (void)modelChanged;
|
| @@ -65,3 +69,14 @@ class KeywordEditorModelObserver : public TemplateURLModelObserver,
|
| - (IBAction)makeDefault:(id)sender;
|
|
|
| @end
|
| +
|
| +@interface KeywordEditorCocoaController (TestingAPI)
|
| +
|
| +// Instances of this class are managed, use +showKeywordEditor:.
|
| +- (id)initWithProfile:(Profile*)profile;
|
| +
|
| +// Returns a reference to the shared instance for the given profile,
|
| +// or nil if there is none.
|
| ++ (KeywordEditorCocoaController*)sharedInstanceForProfile:(Profile*)profile;
|
| +
|
| +@end
|
|
|