| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/md_settings_ui.h" | 5 #include "chrome/browser/ui/webui/settings/md_settings_ui.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/browser/ui/webui/options/core_options_handler.h" | 11 #include "chrome/browser/ui/webui/options/core_options_handler.h" |
| 12 #include "chrome/common/url_constants.h" | 12 #include "chrome/common/url_constants.h" |
| 13 #include "chrome/grit/generated_resources.h" | 13 #include "chrome/grit/generated_resources.h" |
| 14 #include "content/public/browser/web_contents.h" | 14 #include "content/public/browser/web_contents.h" |
| 15 #include "content/public/browser/web_ui.h" | 15 #include "content/public/browser/web_ui.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 MdSettingsUI::~MdSettingsUI() { | 55 MdSettingsUI::~MdSettingsUI() { |
| 56 } | 56 } |
| 57 | 57 |
| 58 void MdSettingsUI::InitializeHandlers() { | 58 void MdSettingsUI::InitializeHandlers() { |
| 59 Profile* profile = Profile::FromWebUI(web_ui()); | 59 Profile* profile = Profile::FromWebUI(web_ui()); |
| 60 DCHECK(!profile->IsOffTheRecord() || profile->IsGuestSession()); | 60 DCHECK(!profile->IsOffTheRecord() || profile->IsGuestSession()); |
| 61 | 61 |
| 62 core_handler_->InitializeHandler(); | 62 core_handler_->InitializeHandler(); |
| 63 core_handler_->InitializePage(); | 63 core_handler_->InitializePage(); |
| 64 } | 64 } |
| OLD | NEW |