Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / test / base / scoped_browser_locale.cc
blobc1538a1dbecf08ba5f83d5220e0ae51e15e847d0
1 // Copyright 2013 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 "chrome/test/base/scoped_browser_locale.h"
7 #include "chrome/browser/browser_process.h"
9 ScopedBrowserLocale::ScopedBrowserLocale(const std::string& new_locale)
10 : old_locale_(g_browser_process->GetApplicationLocale()) {
11 g_browser_process->SetApplicationLocale(new_locale);
14 ScopedBrowserLocale::~ScopedBrowserLocale() {
15 g_browser_process->SetApplicationLocale(old_locale_);