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

Side by Side Diff: chrome/browser/ui/startup/startup_browser_creator_win.cc

Issue 10690060: startup: Put it in chrome namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 #include "chrome/browser/ui/startup/startup_browser_creator_win.h" 5 #include "chrome/browser/ui/startup/startup_browser_creator_win.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/win/metro.h" 8 #include "base/win/metro.h"
9
10 #include "chrome/browser/search_engines/template_url.h" 9 #include "chrome/browser/search_engines/template_url.h"
11 #include "chrome/browser/search_engines/template_url_service.h" 10 #include "chrome/browser/search_engines/template_url_service.h"
12 #include "chrome/browser/search_engines/template_url_service_factory.h" 11 #include "chrome/browser/search_engines/template_url_service_factory.h"
13 12
14 namespace browser { 13 namespace chrome {
15 14
16 // Metro driver exports for getting the launch type, initial url, initial 15 // Metro driver exports for getting the launch type, initial url, initial
17 // search term, etc. 16 // search term, etc.
18 extern "C" { 17 extern "C" {
19 typedef const wchar_t* (*GetInitialUrl)(); 18 typedef const wchar_t* (*GetInitialUrl)();
20 typedef const wchar_t* (*GetInitialSearchString)(); 19 typedef const wchar_t* (*GetInitialSearchString)();
21 typedef base::win::MetroLaunchType (*GetLaunchType)( 20 typedef base::win::MetroLaunchType (*GetLaunchType)(
22 base::win::MetroPreviousExecutionState* previous_state); 21 base::win::MetroPreviousExecutionState* previous_state);
23 } 22 }
24 23
(...skipping 28 matching lines...) Expand all
53 if (default_provider) { 52 if (default_provider) {
54 const TemplateURLRef& search_url = default_provider->url_ref(); 53 const TemplateURLRef& search_url = default_provider->url_ref();
55 DCHECK(search_url.SupportsReplacement()); 54 DCHECK(search_url.SupportsReplacement());
56 return GURL(search_url.ReplaceSearchTerms( 55 return GURL(search_url.ReplaceSearchTerms(
57 TemplateURLRef::SearchTermsArgs(search_string))); 56 TemplateURLRef::SearchTermsArgs(search_string)));
58 } 57 }
59 } 58 }
60 return GURL(); 59 return GURL();
61 } 60 }
62 61
63 } // namespace browser 62 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/startup/startup_browser_creator_win.h ('k') | chrome/browser/ui/startup/startup_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698