OLD | NEW |
1 // Copyright (c) 2011 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/chrome_browser_main_linux.h" | 5 #include "chrome/browser/chrome_browser_main_linux.h" |
6 | 6 |
7 #if defined(TOOLKIT_USES_GTK) | |
8 #include "chrome/browser/chrome_browser_main_extra_parts_gtk.h" | |
9 #endif | |
10 | |
11 ChromeBrowserMainPartsLinux::ChromeBrowserMainPartsLinux( | 7 ChromeBrowserMainPartsLinux::ChromeBrowserMainPartsLinux( |
12 const content::MainFunctionParams& parameters) | 8 const content::MainFunctionParams& parameters) |
13 : ChromeBrowserMainPartsPosix(parameters) { | 9 : ChromeBrowserMainPartsPosix(parameters) { |
14 } | 10 } |
15 | |
16 void ChromeBrowserMainPartsLinux::ShowMissingLocaleMessageBox() { | |
17 #if defined(USE_AURA) | |
18 // This should never happen on Aura. | |
19 NOTREACHED() << chrome_browser::kMissingLocaleDataMessage; | |
20 #elif defined(TOOLKIT_USES_GTK) | |
21 ChromeBrowserMainExtraPartsGtk::ShowMessageBox( | |
22 chrome_browser::kMissingLocaleDataMessage); | |
23 #else | |
24 #error "Need MessageBox implementation for linux without Aura or Gtk" | |
25 #endif | |
26 } | |
OLD | NEW |