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

Side by Side Diff: chrome/browser/ui/cocoa/first_run_bubble_controller.mm

Issue 368273011: Revert of Componentize TemplateURLService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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) 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"
11 #include "chrome/browser/ui/chrome_pages.h" 12 #include "chrome/browser/ui/chrome_pages.h"
12 #import "chrome/browser/ui/cocoa/info_bubble_view.h" 13 #import "chrome/browser/ui/cocoa/info_bubble_view.h"
13 #import "chrome/browser/ui/cocoa/l10n_util.h" 14 #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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/bookmarks/bookmark_unittest.cc ('k') | chrome/browser/ui/cocoa/first_run_dialog.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698