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.
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
);
23 // Launch a new instance if we're shutting down because we detected an
24 // upgrade in the persistent mode.
25 upgrade_util::RelaunchChromeBrowserWithNewCommandLineIfNeeded();