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

Side by Side Diff: chrome/browser/ui/webui/print_preview/print_preview_handler.cc

Issue 2978673002: Update print preview test to not use CallJavascriptFunctionUnsafe (Closed)
Patch Set: Created 3 years, 5 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/print_preview/print_preview_handler.h" 5 #include "chrome/browser/ui/webui/print_preview/print_preview_handler.h"
6 6
7 #include <ctype.h> 7 #include <ctype.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 1911 matching lines...) Expand 10 before | Expand all | Expand 10 after
1922 1922
1923 void PrintPreviewHandler::UnregisterForGaiaCookieChanges() { 1923 void PrintPreviewHandler::UnregisterForGaiaCookieChanges() {
1924 if (gaia_cookie_manager_service_) 1924 if (gaia_cookie_manager_service_)
1925 gaia_cookie_manager_service_->RemoveObserver(this); 1925 gaia_cookie_manager_service_->RemoveObserver(this);
1926 } 1926 }
1927 1927
1928 void PrintPreviewHandler::SetPdfSavedClosureForTesting( 1928 void PrintPreviewHandler::SetPdfSavedClosureForTesting(
1929 const base::Closure& closure) { 1929 const base::Closure& closure) {
1930 pdf_file_saved_closure_ = closure; 1930 pdf_file_saved_closure_ = closure;
1931 } 1931 }
1932
1933 void PrintPreviewHandler::SendEnableManipulateSettingsForTest() {
1934 FireWebUIListener("enable-manipulate-settings-for-test", base::Value());
1935 }
1936
1937 void PrintPreviewHandler::SendManipulateSettingsForTest(
1938 const base::DictionaryValue& settings) {
1939 FireWebUIListener("manipulate-settings-for-test", settings);
1940 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698