OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/welcome_win10_handler.h" | 5 #include "chrome/browser/ui/webui/welcome_win10_handler.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
9 #include "chrome/browser/shell_integration.h" | 9 #include "chrome/browser/shell_integration.h" |
10 #include "chrome/common/url_constants.h" | 10 #include "chrome/common/url_constants.h" |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 | 109 |
110 // If the page already called getPinnedToTaskbarState(), the result can be | 110 // If the page already called getPinnedToTaskbarState(), the result can be |
111 // sent back. | 111 // sent back. |
112 if (!pinned_state_callback_id_.empty()) | 112 if (!pinned_state_callback_id_.empty()) |
113 SendPinnedToTaskbarStateResult(); | 113 SendPinnedToTaskbarStateResult(); |
114 } | 114 } |
115 | 115 |
116 void WelcomeWin10Handler::SendPinnedToTaskbarStateResult() { | 116 void WelcomeWin10Handler::SendPinnedToTaskbarStateResult() { |
117 ResolveJavascriptCallback( | 117 ResolveJavascriptCallback( |
118 base::StringValue(pinned_state_callback_id_), | 118 base::StringValue(pinned_state_callback_id_), |
119 base::FundamentalValue(pinned_state_result_.value())); | 119 base::Value(pinned_state_result_.value())); |
120 } | 120 } |
OLD | NEW |