Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(887)

Side by Side Diff: chrome/browser/chromeos/ui/mobile_config_ui.cc

Issue 1662783002: Remove HostDesktopType from Browser::CreateParams (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-12
Patch Set: remove desktop_type_ in bookmark_bubble_sign_in_delegate Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/chromeos/ui/mobile_config_ui.h" 5 #include "chrome/browser/chromeos/ui/mobile_config_ui.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "chrome/browser/chromeos/mobile_config.h" 10 #include "chrome/browser/chromeos/mobile_config.h"
(...skipping 16 matching lines...) Expand all
27 LOG(ERROR) << "MobileConfig::LocaleConfig not available"; 27 LOG(ERROR) << "MobileConfig::LocaleConfig not available";
28 return false; 28 return false;
29 } 29 }
30 std::string setup_url = locale_config->setup_url(); 30 std::string setup_url = locale_config->setup_url();
31 if (setup_url.empty()) { 31 if (setup_url.empty()) {
32 LOG(ERROR) << "MobileConfig setup url is empty"; 32 LOG(ERROR) << "MobileConfig setup url is empty";
33 return false; 33 return false;
34 } 34 }
35 // The mobile device will be managed by the primary user. 35 // The mobile device will be managed by the primary user.
36 chrome::ScopedTabbedBrowserDisplayer displayer( 36 chrome::ScopedTabbedBrowserDisplayer displayer(
37 ProfileManager::GetPrimaryUserProfile(), 37 ProfileManager::GetPrimaryUserProfile());
38 chrome::HOST_DESKTOP_TYPE_ASH);
39 chrome::ShowSingletonTab(displayer.browser(), GURL(setup_url)); 38 chrome::ShowSingletonTab(displayer.browser(), GURL(setup_url));
40 return true; 39 return true;
41 } 40 }
42 41
43 } // namespace mobile_config_ui 42 } // namespace mobile_config_ui
44 } // namespace chromeos 43 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/status/data_promo_notification.cc ('k') | chrome/browser/devtools/devtools_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698