| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #import "chrome/browser/ui/cocoa/first_run_bubble_controller.h" | 5 #import "chrome/browser/ui/cocoa/first_run_bubble_controller.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "chrome/browser/first_run/first_run.h" | 9 #include "chrome/browser/first_run/first_run.h" |
| 10 #include "chrome/browser/search_engines/template_url_service_factory.h" | 10 #include "chrome/browser/search_engines/template_url_service_factory.h" |
| 11 #include "chrome/browser/search_engines/util.h" | |
| 12 #include "chrome/browser/ui/chrome_pages.h" | 11 #include "chrome/browser/ui/chrome_pages.h" |
| 13 #import "chrome/browser/ui/cocoa/info_bubble_view.h" | 12 #import "chrome/browser/ui/cocoa/info_bubble_view.h" |
| 14 #import "chrome/browser/ui/cocoa/l10n_util.h" | 13 #import "chrome/browser/ui/cocoa/l10n_util.h" |
| 14 #include "components/search_engines/util.h" |
| 15 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" |
| 16 #include "ui/base/l10n/l10n_util.h" | 16 #include "ui/base/l10n/l10n_util.h" |
| 17 | 17 |
| 18 @interface FirstRunBubbleController(Private) | 18 @interface FirstRunBubbleController(Private) |
| 19 - (id)initRelativeToView:(NSView*)view | 19 - (id)initRelativeToView:(NSView*)view |
| 20 offset:(NSPoint)offset | 20 offset:(NSPoint)offset |
| 21 browser:(Browser*)browser | 21 browser:(Browser*)browser |
| 22 profile:(Profile*)profile; | 22 profile:(Profile*)profile; |
| 23 - (void)closeIfNotKey; | 23 - (void)closeIfNotKey; |
| 24 @end | 24 @end |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 - (IBAction)onChange:(id)sender { | 94 - (IBAction)onChange:(id)sender { |
| 95 first_run::LogFirstRunMetric(first_run::FIRST_RUN_BUBBLE_CHANGE_INVOKED); | 95 first_run::LogFirstRunMetric(first_run::FIRST_RUN_BUBBLE_CHANGE_INVOKED); |
| 96 | 96 |
| 97 Browser* browser = browser_; | 97 Browser* browser = browser_; |
| 98 [self close]; | 98 [self close]; |
| 99 if (browser) | 99 if (browser) |
| 100 chrome::ShowSearchEngineSettings(browser); | 100 chrome::ShowSearchEngineSettings(browser); |
| 101 } | 101 } |
| 102 | 102 |
| 103 @end // FirstRunBubbleController | 103 @end // FirstRunBubbleController |
| OLD | NEW |