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

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

Issue 7619006: base: Remove using declaration of FundamentalValue as it's no longer necessary. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« no previous file with comments | « chrome/browser/ui/webui/plugins_ui.cc ('k') | chrome/browser/ui/webui/print_preview_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_handler.h" 5 #include "chrome/browser/ui/webui/print_preview_handler.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #if !defined(OS_CHROMEOS) 10 #if !defined(OS_CHROMEOS)
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 698
699 void PrintPreviewHandler::SendCloudPrintEnabled() { 699 void PrintPreviewHandler::SendCloudPrintEnabled() {
700 #if defined(OS_CHROMEOS) 700 #if defined(OS_CHROMEOS)
701 bool enable_cloud_print_integration = true; 701 bool enable_cloud_print_integration = true;
702 #else 702 #else
703 bool enable_cloud_print_integration = 703 bool enable_cloud_print_integration =
704 CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableCloudPrint); 704 CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableCloudPrint);
705 #endif 705 #endif
706 GURL gcp_url(CloudPrintURL(BrowserList::GetLastActive()->profile()). 706 GURL gcp_url(CloudPrintURL(BrowserList::GetLastActive()->profile()).
707 GetCloudPrintServiceURL()); 707 GetCloudPrintServiceURL());
708 FundamentalValue enable(enable_cloud_print_integration); 708 base::FundamentalValue enable(enable_cloud_print_integration);
709 StringValue gcp_url_value(gcp_url.spec()); 709 base::StringValue gcp_url_value(gcp_url.spec());
710 web_ui_->CallJavascriptFunction("setUseCloudPrint", enable, gcp_url_value); 710 web_ui_->CallJavascriptFunction("setUseCloudPrint", enable, gcp_url_value);
711 } 711 }
712 712
713 void PrintPreviewHandler::SendCloudPrintJob(const DictionaryValue& settings, 713 void PrintPreviewHandler::SendCloudPrintJob(const DictionaryValue& settings,
714 std::string print_ticket) { 714 std::string print_ticket) {
715 scoped_refptr<RefCountedBytes> data; 715 scoped_refptr<RefCountedBytes> data;
716 PrintPreviewUI* print_preview_ui = static_cast<PrintPreviewUI*>(web_ui_); 716 PrintPreviewUI* print_preview_ui = static_cast<PrintPreviewUI*>(web_ui_);
717 print_preview_ui->GetPrintPreviewDataForIndex( 717 print_preview_ui->GetPrintPreviewDataForIndex(
718 printing::COMPLETE_PREVIEW_DOCUMENT_INDEX, &data); 718 printing::COMPLETE_PREVIEW_DOCUMENT_INDEX, &data);
719 CHECK(data.get()); 719 CHECK(data.get());
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 return; 887 return;
888 888
889 // We no longer require the initiator tab details. Remove those details 889 // We no longer require the initiator tab details. Remove those details
890 // associated with the preview tab to allow the initiator tab to create 890 // associated with the preview tab to allow the initiator tab to create
891 // another preview tab. 891 // another preview tab.
892 printing::PrintPreviewTabController* tab_controller = 892 printing::PrintPreviewTabController* tab_controller =
893 printing::PrintPreviewTabController::GetInstance(); 893 printing::PrintPreviewTabController::GetInstance();
894 if (tab_controller) 894 if (tab_controller)
895 tab_controller->EraseInitiatorTabInfo(preview_tab()); 895 tab_controller->EraseInitiatorTabInfo(preview_tab());
896 } 896 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/plugins_ui.cc ('k') | chrome/browser/ui/webui/print_preview_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698