OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/browser_init.h" | 5 #include "chrome/browser/browser_init.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
9 #include "base/event_recorder.h" | 9 #include "base/event_recorder.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 | 331 |
332 #if defined(OS_CHROMEOS) | 332 #if defined(OS_CHROMEOS) |
333 // Create the TabOverviewMessageListener so that it can listen for messages | 333 // Create the TabOverviewMessageListener so that it can listen for messages |
334 // regardless of what window has focus. | 334 // regardless of what window has focus. |
335 TabOverviewMessageListener::instance(); | 335 TabOverviewMessageListener::instance(); |
336 | 336 |
337 // Install the GView request interceptor that will redirect requests | 337 // Install the GView request interceptor that will redirect requests |
338 // of compatible documents (PDF, etc) to the GView document viewer. | 338 // of compatible documents (PDF, etc) to the GView document viewer. |
339 const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess(); | 339 const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess(); |
340 if (parsed_command_line.HasSwitch(switches::kEnableGView)) { | 340 if (parsed_command_line.HasSwitch(switches::kEnableGView)) { |
341 GViewRequestInterceptor::GetGViewRequestInterceptor(); | 341 chromeos::GViewRequestInterceptor::GetGViewRequestInterceptor(); |
342 } | 342 } |
343 #endif | 343 #endif |
344 return true; | 344 return true; |
345 } | 345 } |
346 | 346 |
347 GURL GetWelcomePageURL() { | 347 GURL GetWelcomePageURL() { |
348 std::string welcome_url = l10n_util::GetStringUTF8(IDS_WELCOME_PAGE_URL); | 348 std::string welcome_url = l10n_util::GetStringUTF8(IDS_WELCOME_PAGE_URL); |
349 return GURL(welcome_url); | 349 return GURL(welcome_url); |
350 } | 350 } |
351 | 351 |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
832 scoped_refptr<AutomationProviderClass> automation = | 832 scoped_refptr<AutomationProviderClass> automation = |
833 new AutomationProviderClass(profile); | 833 new AutomationProviderClass(profile); |
834 automation->ConnectToChannel(channel_id); | 834 automation->ConnectToChannel(channel_id); |
835 automation->SetExpectedTabCount(expected_tabs); | 835 automation->SetExpectedTabCount(expected_tabs); |
836 | 836 |
837 AutomationProviderList* list = | 837 AutomationProviderList* list = |
838 g_browser_process->InitAutomationProviderList(); | 838 g_browser_process->InitAutomationProviderList(); |
839 DCHECK(list); | 839 DCHECK(list); |
840 list->AddProvider(automation); | 840 list->AddProvider(automation); |
841 } | 841 } |
OLD | NEW |