• Rohit Agarwal's avatar
    Revert "Restart in the profile type that invoked it." · cb41ede1
    Rohit Agarwal authored
    This reverts commit ca5efa8e.
    
    Reason for revert:
    
    A regression bug was crbug.com/1009377 created because of this CL.
    
    Original change's description:
    > Restart in the profile type that invoked it.
    >
    > If the user started the browser in incognito mode and
    > triggered a restart in regular mode, the browser was started
    > in the incognito mode. Similarly, if the user started in the
    > regular mode and triggered a restart in the incognito mode,
    > the browser was started in the regular mode.
    >
    > The fix is to find the profile type that invoked the restart.
    > Then use this type to modify old switch arguments which are used
    > to create the new cmd line arguments for restart.
    >
    > Bug: 999085
    > Change-Id: Ide6e86aabb90b5a333ec10ea23e3add62a3d0e34
    > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1789582
    > Reviewed-by: Vasilii Sukhanov <vasilii@chromium.org>
    > Reviewed-by: Ramin Halavati <rhalavati@chromium.org>
    > Commit-Queue: Rohit Agarwal <roagarwal@chromium.org>
    > Cr-Commit-Position: refs/heads/master@{#694717}
    
    TBR=vasilii@chromium.org,rhalavati@chromium.org,roagarwal@chromium.org
    
    # Not skipping CQ checks because original CL landed > 1 day ago.
    
    Bug: 999085
    Change-Id: Ie3351c13cdb8f01f1e5c5088c7c6e72f936d569f
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1839793Reviewed-by: default avatarVasilii Sukhanov <vasilii@chromium.org>
    Reviewed-by: default avatarRamin Halavati <rhalavati@chromium.org>
    Commit-Queue: Rohit Agarwal <roagarwal@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#703239}
    cb41ede1
application_lifetime.cc 13.6 KB