Fix infinite recursion on hiding panel when created during fullscreen mode.
[chromium-blink-merge.git] / chrome / app / chrome_exe_main_gtk.cc
blobf84867aef2bd9f270e2edd83f51b11e56ecf40b2
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
3 // found in the LICENSE file.
5 #include "build/build_config.h"
6 #include "chrome/browser/first_run/upgrade_util.h"
7 #include "components/startup_metric_utils/startup_metric_utils.h"
9 // The entry point for all invocations of Chromium, browser and renderer. On
10 // windows, this does nothing but load chrome.dll and invoke its entry point in
11 // order to make it easy to update the app from GoogleUpdate. We don't need
12 // that extra layer with on linux.
14 extern "C" {
15 int ChromeMain(int argc, const char** argv);
18 int main(int argc, const char** argv) {
19 startup_metric_utils::RecordExeMainEntryTime();
20 int return_code = ChromeMain(argc, argv);
22 #if defined(OS_LINUX)
23 // Launch a new instance if we're shutting down because we detected an
24 // upgrade in the persistent mode.
25 upgrade_util::RelaunchChromeBrowserWithNewCommandLineIfNeeded();
26 #endif
28 return return_code;