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

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

Issue 602773002: Handle multiple signin_internal_uis by using a linked_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 return false; 78 return false;
79 } 79 }
80 80
81 void SignInInternalsUI::OnSigninStateChanged( 81 void SignInInternalsUI::OnSigninStateChanged(
82 scoped_ptr<base::DictionaryValue> info) { 82 scoped_ptr<base::DictionaryValue> info) {
83 web_ui()->CallJavascriptFunction( 83 web_ui()->CallJavascriptFunction(
84 "chrome.signin.onSigninInfoChanged.fire", *info); 84 "chrome.signin.onSigninInfoChanged.fire", *info);
85 } 85 }
86 86
87 void SignInInternalsUI::OnCookieAccountsFetched( 87 void SignInInternalsUI::OnCookieAccountsFetched(
88 scoped_ptr<base::DictionaryValue> info) { 88 linked_ptr<base::DictionaryValue> info) {
89 web_ui()->CallJavascriptFunction( 89 web_ui()->CallJavascriptFunction(
90 "chrome.signin.onCookieAccountsFetched.fire", *info); 90 "chrome.signin.onCookieAccountsFetched.fire", *info);
91 } 91 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698