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

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

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2013 The Chromium Authors. All rights reserved. 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 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/chromeos/slow_ui.h" 5 #include "chrome/browser/ui/webui/chromeos/slow_ui.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/prefs/pref_change_registrar.h"
12 #include "base/prefs/pref_service.h"
13 #include "base/values.h" 11 #include "base/values.h"
14 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/common/pref_names.h" 13 #include "chrome/common/pref_names.h"
16 #include "chrome/common/url_constants.h" 14 #include "chrome/common/url_constants.h"
17 #include "chrome/grit/generated_resources.h" 15 #include "chrome/grit/generated_resources.h"
16 #include "components/prefs/pref_change_registrar.h"
17 #include "components/prefs/pref_service.h"
18 #include "content/public/browser/web_contents.h" 18 #include "content/public/browser/web_contents.h"
19 #include "content/public/browser/web_ui.h" 19 #include "content/public/browser/web_ui.h"
20 #include "content/public/browser/web_ui_data_source.h" 20 #include "content/public/browser/web_ui_data_source.h"
21 #include "content/public/browser/web_ui_message_handler.h" 21 #include "content/public/browser/web_ui_message_handler.h"
22 #include "grit/browser_resources.h" 22 #include "grit/browser_resources.h"
23 #include "ui/base/webui/jstemplate_builder.h" 23 #include "ui/base/webui/jstemplate_builder.h"
24 #include "ui/base/webui/web_ui_util.h" 24 #include "ui/base/webui/web_ui_util.h"
25 25
26 using content::WebUIMessageHandler; 26 using content::WebUIMessageHandler;
27 27
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 SlowHandler* handler = new SlowHandler(profile); 129 SlowHandler* handler = new SlowHandler(profile);
130 web_ui->AddMessageHandler(handler); 130 web_ui->AddMessageHandler(handler);
131 131
132 // Set up the chrome://slow/ source. 132 // Set up the chrome://slow/ source.
133 content::WebUIDataSource::Add(profile, CreateSlowUIHTMLSource()); 133 content::WebUIDataSource::Add(profile, CreateSlowUIHTMLSource());
134 } 134 }
135 135
136 } // namespace chromeos 136 } // namespace chromeos
137 137
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698