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

Side by Side Diff: chrome/browser/ui/webui/signin_internals_ui.cc

Issue 454583002: Cleanup: Remove unneeded #includes for grit/, ui/base/l10n/l10n_util.h and ui/base/resource/resourc… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Cros some more Created 6 years, 4 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/signin_internals_ui.h" 5 #include "chrome/browser/ui/webui/signin_internals_ui.h"
6 6
7 #include "base/hash.h" 7 #include "base/hash.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/signin/about_signin_internals_factory.h" 9 #include "chrome/browser/signin/about_signin_internals_factory.h"
10 #include "chrome/common/url_constants.h" 10 #include "chrome/common/url_constants.h"
11 #include "components/signin/core/browser/about_signin_internals.h" 11 #include "components/signin/core/browser/about_signin_internals.h"
12 #include "content/public/browser/web_ui.h" 12 #include "content/public/browser/web_ui.h"
13 #include "content/public/browser/web_ui_data_source.h" 13 #include "content/public/browser/web_ui_data_source.h"
14 #include "grit/signin_internals_resources.h" 14 #include "grit/signin_internals_resources.h"
15 #include "ui/base/resource/resource_bundle.h"
16 15
17 namespace { 16 namespace {
18 17
19 content::WebUIDataSource* CreateSignInInternalsHTMLSource() { 18 content::WebUIDataSource* CreateSignInInternalsHTMLSource() {
20 content::WebUIDataSource* source = 19 content::WebUIDataSource* source =
21 content::WebUIDataSource::Create(chrome::kChromeUISignInInternalsHost); 20 content::WebUIDataSource::Create(chrome::kChromeUISignInInternalsHost);
22 21
23 source->SetJsonPath("strings.js"); 22 source->SetJsonPath("strings.js");
24 source->AddResourcePath("signin_internals.js", 23 source->AddResourcePath("signin_internals.js",
25 IDR_SIGNIN_INTERNALS_INDEX_JS); 24 IDR_SIGNIN_INTERNALS_INDEX_JS);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 } 76 }
78 } 77 }
79 return false; 78 return false;
80 } 79 }
81 80
82 void SignInInternalsUI::OnSigninStateChanged( 81 void SignInInternalsUI::OnSigninStateChanged(
83 scoped_ptr<base::DictionaryValue> info) { 82 scoped_ptr<base::DictionaryValue> info) {
84 const std::string& event_handler = "chrome.signin.onSigninInfoChanged.fire"; 83 const std::string& event_handler = "chrome.signin.onSigninInfoChanged.fire";
85 web_ui()->CallJavascriptFunction(event_handler, *info); 84 web_ui()->CallJavascriptFunction(event_handler, *info);
86 } 85 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698