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

Side by Side Diff: chrome/browser/ui/webui/options/chromeos/consumer_management_handler.cc

Issue 2072013002: mash: Move tray settings and deps to common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undo 'git cl format' and nullptr changes. Created 4 years, 6 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/ui/webui/options/chromeos/consumer_management_handler.h " 5 #include "chrome/browser/ui/webui/options/chromeos/consumer_management_handler.h "
6 6
7 #include "ash/system/chromeos/devicetype_utils.h" 7 #include "ash/common/system/chromeos/devicetype_utils.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/browser/chromeos/policy/consumer_management_service.h" 12 #include "chrome/browser/chromeos/policy/consumer_management_service.h"
13 #include "chrome/browser/chromeos/policy/consumer_management_stage.h" 13 #include "chrome/browser/chromeos/policy/consumer_management_stage.h"
14 #include "chrome/browser/chromeos/policy/consumer_unenrollment_handler.h" 14 #include "chrome/browser/chromeos/policy/consumer_unenrollment_handler.h"
15 #include "chrome/browser/chromeos/policy/consumer_unenrollment_handler_factory.h " 15 #include "chrome/browser/chromeos/policy/consumer_unenrollment_handler_factory.h "
16 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
17 #include "chrome/grit/generated_resources.h" 17 #include "chrome/grit/generated_resources.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 CHECK(management_service_); 104 CHECK(management_service_);
105 management_service_->SetStage( 105 management_service_->SetStage(
106 policy::ConsumerManagementStage::UnenrollmentRequested()); 106 policy::ConsumerManagementStage::UnenrollmentRequested());
107 policy::ConsumerUnenrollmentHandlerFactory::GetForBrowserContext( 107 policy::ConsumerUnenrollmentHandlerFactory::GetForBrowserContext(
108 Profile::FromWebUI(web_ui()))->Start(); 108 Profile::FromWebUI(web_ui()))->Start();
109 } 109 }
110 110
111 } // namespace options 111 } // namespace options
112 } // namespace chromeos 112 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698