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

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

Issue 498773003: Use a qualified path for chromium_strings, google_chrome_strings, and generated_resources. (part 2 … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 3 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 | Annotate | Revision Log
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/prefs/pref_change_registrar.h" 10 #include "base/prefs/pref_change_registrar.h"
11 #include "base/prefs/pref_service.h" 11 #include "base/prefs/pref_service.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/common/pref_names.h" 14 #include "chrome/common/pref_names.h"
15 #include "chrome/common/url_constants.h" 15 #include "chrome/common/url_constants.h"
16 #include "chrome/grit/generated_resources.h"
16 #include "content/public/browser/web_contents.h" 17 #include "content/public/browser/web_contents.h"
17 #include "content/public/browser/web_ui.h" 18 #include "content/public/browser/web_ui.h"
18 #include "content/public/browser/web_ui_data_source.h" 19 #include "content/public/browser/web_ui_data_source.h"
19 #include "content/public/browser/web_ui_message_handler.h" 20 #include "content/public/browser/web_ui_message_handler.h"
20 #include "grit/browser_resources.h" 21 #include "grit/browser_resources.h"
21 #include "grit/generated_resources.h"
22 #include "ui/base/webui/jstemplate_builder.h" 22 #include "ui/base/webui/jstemplate_builder.h"
23 #include "ui/base/webui/web_ui_util.h" 23 #include "ui/base/webui/web_ui_util.h"
24 24
25 using content::WebUIMessageHandler; 25 using content::WebUIMessageHandler;
26 26
27 namespace { 27 namespace {
28 28
29 // JS API callbacks names. 29 // JS API callbacks names.
30 const char kJsApiDisableTracing[] = "disableTracing"; 30 const char kJsApiDisableTracing[] = "disableTracing";
31 const char kJsApiEnableTracing[] = "enableTracing"; 31 const char kJsApiEnableTracing[] = "enableTracing";
(...skipping 96 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
« no previous file with comments | « chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc ('k') | chrome/browser/ui/webui/components_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698