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

Side by Side Diff: trunk/src/chrome/browser/guestview/webview/webview_find_helper.cc

Issue 252773003: Revert 266297 "1. Handle the case of empty embedder_extension_id..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/guestview/webview/webview_find_helper.h" 5 #include "chrome/browser/guestview/webview/webview_find_helper.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "chrome/browser/extensions/api/webview/webview_api.h" 9 #include "chrome/browser/extensions/api/webview/webview_api.h"
10 #include "chrome/browser/guestview/webview/webview_constants.h" 10 #include "chrome/browser/guestview/webview/webview_constants.h"
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 void WebviewFindHelper::FindInfo::SendResponse(bool canceled) { 270 void WebviewFindHelper::FindInfo::SendResponse(bool canceled) {
271 // Prepare the find results to pass to the callback function. 271 // Prepare the find results to pass to the callback function.
272 base::DictionaryValue results; 272 base::DictionaryValue results;
273 find_results_.PrepareResults(&results); 273 find_results_.PrepareResults(&results);
274 results.SetBoolean(webview::kFindCanceled, canceled); 274 results.SetBoolean(webview::kFindCanceled, canceled);
275 275
276 // Call the callback. 276 // Call the callback.
277 find_function_->SetResult(results.DeepCopy()); 277 find_function_->SetResult(results.DeepCopy());
278 find_function_->SendResponse(true); 278 find_function_->SendResponse(true);
279 } 279 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698