Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 <ctype.h> | 7 #include <ctype.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 43 #include "chrome/common/chrome_paths.h" | 43 #include "chrome/common/chrome_paths.h" |
| 44 #include "chrome/common/pref_names.h" | 44 #include "chrome/common/pref_names.h" |
| 45 #include "chrome/common/print_messages.h" | 45 #include "chrome/common/print_messages.h" |
| 46 #include "content/browser/renderer_host/render_view_host.h" | 46 #include "content/browser/renderer_host/render_view_host.h" |
| 47 #include "content/browser/tab_contents/tab_contents.h" | 47 #include "content/browser/tab_contents/tab_contents.h" |
| 48 #include "content/public/browser/browser_thread.h" | 48 #include "content/public/browser/browser_thread.h" |
| 49 #include "printing/backend/print_backend.h" | 49 #include "printing/backend/print_backend.h" |
| 50 #include "printing/metafile.h" | 50 #include "printing/metafile.h" |
| 51 #include "printing/metafile_impl.h" | 51 #include "printing/metafile_impl.h" |
| 52 #include "printing/page_range.h" | 52 #include "printing/page_range.h" |
| 53 #include "printing/page_size_margins.h" | |
| 53 #include "printing/print_settings.h" | 54 #include "printing/print_settings.h" |
| 54 #include "unicode/ulocdata.h" | 55 #include "unicode/ulocdata.h" |
| 55 | 56 |
| 56 #if !defined(OS_CHROMEOS) | 57 #if !defined(OS_CHROMEOS) |
| 57 #include "base/command_line.h" | 58 #include "base/command_line.h" |
| 58 #include "chrome/common/chrome_switches.h" | 59 #include "chrome/common/chrome_switches.h" |
| 59 #endif | 60 #endif |
| 60 | 61 |
| 61 using content::BrowserThread; | 62 using content::BrowserThread; |
| 62 | 63 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 199 }; | 200 }; |
| 200 | 201 |
| 201 // static | 202 // static |
| 202 FilePath* PrintPreviewHandler::last_saved_path_ = NULL; | 203 FilePath* PrintPreviewHandler::last_saved_path_ = NULL; |
| 203 std::string* PrintPreviewHandler::last_used_printer_cloud_print_data_ = NULL; | 204 std::string* PrintPreviewHandler::last_used_printer_cloud_print_data_ = NULL; |
| 204 std::string* PrintPreviewHandler::last_used_printer_name_ = NULL; | 205 std::string* PrintPreviewHandler::last_used_printer_name_ = NULL; |
| 205 printing::ColorModels PrintPreviewHandler::last_used_color_model_ = | 206 printing::ColorModels PrintPreviewHandler::last_used_color_model_ = |
| 206 printing::UNKNOWN_COLOR_MODEL; | 207 printing::UNKNOWN_COLOR_MODEL; |
| 207 printing::MarginType PrintPreviewHandler::last_used_margins_type_ = | 208 printing::MarginType PrintPreviewHandler::last_used_margins_type_ = |
| 208 printing::DEFAULT_MARGINS; | 209 printing::DEFAULT_MARGINS; |
| 210 printing::PageSizeMargins* | |
| 211 PrintPreviewHandler::last_used_page_size_margins_ = NULL; | |
| 209 | 212 |
| 210 PrintPreviewHandler::PrintPreviewHandler() | 213 PrintPreviewHandler::PrintPreviewHandler() |
| 211 : print_backend_(printing::PrintBackend::CreateInstance(NULL)), | 214 : print_backend_(printing::PrintBackend::CreateInstance(NULL)), |
| 212 regenerate_preview_request_count_(0), | 215 regenerate_preview_request_count_(0), |
| 213 manage_printers_dialog_request_count_(0), | 216 manage_printers_dialog_request_count_(0), |
| 214 reported_failed_preview_(false), | 217 reported_failed_preview_(false), |
| 215 has_logged_printers_count_(false) { | 218 has_logged_printers_count_(false) { |
| 216 ReportUserActionHistogram(PREVIEW_STARTED); | 219 ReportUserActionHistogram(PREVIEW_STARTED); |
| 217 } | 220 } |
| 218 | 221 |
| 219 PrintPreviewHandler::~PrintPreviewHandler() { | 222 PrintPreviewHandler::~PrintPreviewHandler() { |
| 220 if (select_file_dialog_.get()) | 223 if (select_file_dialog_.get()) |
| 221 select_file_dialog_->ListenerDestroyed(); | 224 select_file_dialog_->ListenerDestroyed(); |
| 222 } | 225 } |
| 223 | 226 |
| 224 void PrintPreviewHandler::RegisterMessages() { | 227 void PrintPreviewHandler::RegisterMessages() { |
| 225 web_ui_->RegisterMessageCallback("getDefaultPrinter", | |
| 226 base::Bind(&PrintPreviewHandler::HandleGetDefaultPrinter, | |
| 227 base::Unretained(this))); | |
| 228 web_ui_->RegisterMessageCallback("getPrinters", | 228 web_ui_->RegisterMessageCallback("getPrinters", |
| 229 base::Bind(&PrintPreviewHandler::HandleGetPrinters, | 229 base::Bind(&PrintPreviewHandler::HandleGetPrinters, |
| 230 base::Unretained(this))); | 230 base::Unretained(this))); |
| 231 web_ui_->RegisterMessageCallback("getPreview", | 231 web_ui_->RegisterMessageCallback("getPreview", |
| 232 base::Bind(&PrintPreviewHandler::HandleGetPreview, | 232 base::Bind(&PrintPreviewHandler::HandleGetPreview, |
| 233 base::Unretained(this))); | 233 base::Unretained(this))); |
| 234 web_ui_->RegisterMessageCallback("print", | 234 web_ui_->RegisterMessageCallback("print", |
| 235 base::Bind(&PrintPreviewHandler::HandlePrint, | 235 base::Bind(&PrintPreviewHandler::HandlePrint, |
| 236 base::Unretained(this))); | 236 base::Unretained(this))); |
| 237 web_ui_->RegisterMessageCallback("getPrinterCapabilities", | 237 web_ui_->RegisterMessageCallback("getPrinterCapabilities", |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 257 base::Unretained(this))); | 257 base::Unretained(this))); |
| 258 web_ui_->RegisterMessageCallback("hidePreview", | 258 web_ui_->RegisterMessageCallback("hidePreview", |
| 259 base::Bind(&PrintPreviewHandler::HandleHidePreview, | 259 base::Bind(&PrintPreviewHandler::HandleHidePreview, |
| 260 base::Unretained(this))); | 260 base::Unretained(this))); |
| 261 web_ui_->RegisterMessageCallback("cancelPendingPrintRequest", | 261 web_ui_->RegisterMessageCallback("cancelPendingPrintRequest", |
| 262 base::Bind(&PrintPreviewHandler::HandleCancelPendingPrintRequest, | 262 base::Bind(&PrintPreviewHandler::HandleCancelPendingPrintRequest, |
| 263 base::Unretained(this))); | 263 base::Unretained(this))); |
| 264 web_ui_->RegisterMessageCallback("saveLastPrinter", | 264 web_ui_->RegisterMessageCallback("saveLastPrinter", |
| 265 base::Bind(&PrintPreviewHandler::HandleSaveLastPrinter, | 265 base::Bind(&PrintPreviewHandler::HandleSaveLastPrinter, |
| 266 base::Unretained(this))); | 266 base::Unretained(this))); |
| 267 web_ui_->RegisterMessageCallback("getInitiatorTabTitle", | 267 web_ui_->RegisterMessageCallback("getInitialSettings", |
| 268 base::Bind(&PrintPreviewHandler::HandleGetInitiatorTabTitle, | 268 base::Bind(&PrintPreviewHandler::HandleGetInitialSettings, |
| 269 base::Unretained(this))); | 269 base::Unretained(this))); |
| 270 web_ui_->RegisterMessageCallback("getNumberFormatAndMeasurementSystem", | |
| 271 base::Bind( | |
| 272 &PrintPreviewHandler::HandleGetNumberFormatAndMeasurementSystem, | |
| 273 base::Unretained(this))); | |
| 274 } | 270 } |
| 275 | 271 |
| 276 TabContentsWrapper* PrintPreviewHandler::preview_tab_wrapper() const { | 272 TabContentsWrapper* PrintPreviewHandler::preview_tab_wrapper() const { |
| 277 return TabContentsWrapper::GetCurrentWrapperForContents(preview_tab()); | 273 return TabContentsWrapper::GetCurrentWrapperForContents(preview_tab()); |
| 278 } | 274 } |
| 279 TabContents* PrintPreviewHandler::preview_tab() const { | 275 TabContents* PrintPreviewHandler::preview_tab() const { |
| 280 return web_ui_->tab_contents(); | 276 return web_ui_->tab_contents(); |
| 281 } | 277 } |
| 282 | 278 |
| 283 void PrintPreviewHandler::HandleGetDefaultPrinter(const ListValue* /*args*/) { | |
| 284 scoped_refptr<PrintSystemTaskProxy> task = | |
| 285 new PrintSystemTaskProxy(AsWeakPtr(), | |
| 286 print_backend_.get(), | |
| 287 has_logged_printers_count_); | |
| 288 BrowserThread::PostTask( | |
| 289 BrowserThread::FILE, FROM_HERE, | |
| 290 base::Bind(&PrintSystemTaskProxy::GetDefaultPrinter, task.get())); | |
| 291 } | |
| 292 | |
| 293 void PrintPreviewHandler::HandleGetPrinters(const ListValue* /*args*/) { | 279 void PrintPreviewHandler::HandleGetPrinters(const ListValue* /*args*/) { |
| 294 scoped_refptr<PrintSystemTaskProxy> task = | 280 scoped_refptr<PrintSystemTaskProxy> task = |
| 295 new PrintSystemTaskProxy(AsWeakPtr(), | 281 new PrintSystemTaskProxy(AsWeakPtr(), |
| 296 print_backend_.get(), | 282 print_backend_.get(), |
| 297 has_logged_printers_count_); | 283 has_logged_printers_count_); |
| 298 has_logged_printers_count_ = true; | 284 has_logged_printers_count_ = true; |
| 299 | 285 |
| 300 BrowserThread::PostTask( | 286 BrowserThread::PostTask( |
| 301 BrowserThread::FILE, FROM_HERE, | 287 BrowserThread::FILE, FROM_HERE, |
| 302 base::Bind(&PrintSystemTaskProxy::EnumeratePrinters, task.get())); | 288 base::Bind(&PrintSystemTaskProxy::EnumeratePrinters, task.get())); |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 390 if (!settings.get()) | 376 if (!settings.get()) |
| 391 return; | 377 return; |
| 392 | 378 |
| 393 // Storing last used color model. | 379 // Storing last used color model. |
| 394 int color_model; | 380 int color_model; |
| 395 if (!settings->GetInteger(printing::kSettingColor, &color_model)) | 381 if (!settings->GetInteger(printing::kSettingColor, &color_model)) |
| 396 color_model = printing::GRAY; | 382 color_model = printing::GRAY; |
| 397 last_used_color_model_ = static_cast<printing::ColorModels>(color_model); | 383 last_used_color_model_ = static_cast<printing::ColorModels>(color_model); |
| 398 | 384 |
| 399 // Storing last used margin settings. | 385 // Storing last used margin settings. |
| 400 int margin_type; | 386 bool is_modifiable; |
| 401 if (!settings->GetInteger(printing::kSettingMarginsType, &margin_type)) | 387 settings->GetBoolean(printing::kSettingPreviewModifiable, &is_modifiable); |
| 402 margin_type = printing::DEFAULT_MARGINS; | 388 if (is_modifiable) { |
| 403 last_used_margins_type_ = static_cast<printing::MarginType>(margin_type); | 389 int margin_type; |
| 390 if (!settings->GetInteger(printing::kSettingMarginsType, &margin_type)) | |
| 391 margin_type = printing::DEFAULT_MARGINS; | |
| 392 last_used_margins_type_ = static_cast<printing::MarginType>(margin_type); | |
| 393 if (last_used_margins_type_ == printing::CUSTOM_MARGINS) { | |
| 394 if (!last_used_page_size_margins_) | |
| 395 last_used_page_size_margins_ = new printing::PageSizeMargins(); | |
| 396 getCustomMarginsFromJobSettings(*settings, last_used_page_size_margins_); | |
| 397 } | |
| 398 } | |
| 404 | 399 |
| 405 bool print_to_pdf = false; | 400 bool print_to_pdf = false; |
| 406 settings->GetBoolean(printing::kSettingPrintToPDF, &print_to_pdf); | 401 settings->GetBoolean(printing::kSettingPrintToPDF, &print_to_pdf); |
| 407 | 402 |
| 408 settings->SetBoolean(printing::kSettingHeaderFooterEnabled, false); | 403 settings->SetBoolean(printing::kSettingHeaderFooterEnabled, false); |
| 409 | 404 |
| 410 bool is_cloud_printer = settings->HasKey(printing::kSettingCloudPrintId); | 405 bool is_cloud_printer = settings->HasKey(printing::kSettingCloudPrintId); |
| 411 bool is_cloud_dialog = false; | 406 bool is_cloud_dialog = false; |
| 412 settings->GetBoolean(printing::kSettingCloudPrintDialog, &is_cloud_dialog); | 407 settings->GetBoolean(printing::kSettingCloudPrintDialog, &is_cloud_dialog); |
| 413 if (is_cloud_printer) { | 408 if (is_cloud_printer) { |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 606 regenerate_preview_request_count_); | 601 regenerate_preview_request_count_); |
| 607 | 602 |
| 608 ActivateInitiatorTabAndClosePreviewTab(); | 603 ActivateInitiatorTabAndClosePreviewTab(); |
| 609 } | 604 } |
| 610 | 605 |
| 611 void PrintPreviewHandler::ReportStats() { | 606 void PrintPreviewHandler::ReportStats() { |
| 612 UMA_HISTOGRAM_COUNTS("PrintPreview.ManagePrinters", | 607 UMA_HISTOGRAM_COUNTS("PrintPreview.ManagePrinters", |
| 613 manage_printers_dialog_request_count_); | 608 manage_printers_dialog_request_count_); |
| 614 } | 609 } |
| 615 | 610 |
| 616 void PrintPreviewHandler::HandleGetInitiatorTabTitle( | 611 void PrintPreviewHandler::GetNumberFormatAndMeasurementSystem( |
| 617 const ListValue* /*args*/) { | 612 string16* number_format, int* measurement_system) { |
| 618 PrintPreviewUI* print_preview_ui = static_cast<PrintPreviewUI*>(web_ui_); | |
| 619 base::StringValue tab_title(print_preview_ui->initiator_tab_title()); | |
| 620 web_ui_->CallJavascriptFunction("setInitiatorTabTitle", tab_title); | |
| 621 } | |
| 622 | |
| 623 void PrintPreviewHandler::HandleGetNumberFormatAndMeasurementSystem( | |
| 624 const ListValue* /*args*/) { | |
| 625 | 613 |
| 626 // Getting the measurement system based on the locale. | 614 // Getting the measurement system based on the locale. |
| 627 UErrorCode errorCode = U_ZERO_ERROR; | 615 UErrorCode errorCode = U_ZERO_ERROR; |
| 628 const char* locale = g_browser_process->GetApplicationLocale().c_str(); | 616 const char* locale = g_browser_process->GetApplicationLocale().c_str(); |
| 629 UMeasurementSystem measurement_system = | 617 UMeasurementSystem system = ulocdata_getMeasurementSystem(locale, &errorCode); |
| 630 ulocdata_getMeasurementSystem(locale, &errorCode); | 618 if (errorCode > U_ZERO_ERROR || system == UMS_LIMIT) |
| 631 if (errorCode > U_ZERO_ERROR || measurement_system == UMS_LIMIT) | 619 system = UMS_SI; |
| 632 measurement_system = UMS_SI; | |
| 633 | 620 |
| 634 // Getting the number formatting based on the locale. | 621 // Getting the number formatting based on the locale. |
| 635 StringValue number_format(base::FormatDouble(123456.78, 2)); | 622 *measurement_system = system; |
| 636 base::FundamentalValue system(measurement_system); | 623 *number_format = base::FormatDouble(123456.78, 2); |
| 624 } | |
| 637 | 625 |
| 638 web_ui_->CallJavascriptFunction( | 626 void PrintPreviewHandler::GetLastUsedMarginSettings( |
| 639 "print_preview.setNumberFormatAndMeasurementSystem", | 627 base::DictionaryValue* custom_margins) { |
| 640 number_format, | 628 custom_margins->SetInteger(printing::kSettingMarginsType, |
| 641 system); | 629 PrintPreviewHandler::last_used_margins_type_); |
| 630 if (last_used_page_size_margins_) { | |
| 631 custom_margins->SetDouble(printing::kSettingMarginTop, | |
| 632 last_used_page_size_margins_->margin_top); | |
| 633 custom_margins->SetDouble(printing::kSettingMarginBottom, | |
| 634 last_used_page_size_margins_->margin_bottom); | |
| 635 custom_margins->SetDouble(printing::kSettingMarginLeft, | |
| 636 last_used_page_size_margins_->margin_left); | |
| 637 custom_margins->SetDouble(printing::kSettingMarginRight, | |
| 638 last_used_page_size_margins_->margin_right); | |
| 639 } | |
| 640 } | |
| 641 | |
| 642 void PrintPreviewHandler::HandleGetInitialSettings(const ListValue* /*args*/) { | |
| 643 scoped_refptr<PrintSystemTaskProxy> task = | |
| 644 new PrintSystemTaskProxy(AsWeakPtr(), | |
| 645 print_backend_.get(), | |
| 646 has_logged_printers_count_); | |
| 647 BrowserThread::PostTask( | |
| 648 BrowserThread::FILE, FROM_HERE, | |
| 649 base::Bind(&PrintSystemTaskProxy::GetDefaultPrinter, task.get())); | |
| 650 } | |
| 651 | |
| 652 void PrintPreviewHandler::SendInitialSettings( | |
| 653 const std::string& default_printer, | |
| 654 const std::string& cloud_print_data) { | |
| 655 PrintPreviewUI* print_preview_ui = static_cast<PrintPreviewUI*>(web_ui_); | |
| 656 | |
| 657 base::DictionaryValue initial_settings; | |
| 658 initial_settings.SetString(printing::kSettingInitiatorTabTitle, | |
| 659 print_preview_ui->initiator_tab_title()); | |
| 660 initial_settings.SetBoolean(printing::kSettingPreviewModifiable, | |
| 661 print_preview_ui->source_is_modifiable()); | |
| 662 initial_settings.SetString(printing::kSettingPrinterName, | |
| 663 default_printer); | |
| 664 initial_settings.SetString(printing::kSettingCloudPrintData, | |
| 665 cloud_print_data); | |
| 666 | |
| 667 if (print_preview_ui->source_is_modifiable()) { | |
| 668 GetLastUsedMarginSettings(&initial_settings); | |
| 669 string16 number_format; | |
| 670 int measurement_system = -1; | |
| 671 GetNumberFormatAndMeasurementSystem(&number_format, &measurement_system); | |
|
vandebo (ex-Chrome)
2011/11/10 18:39:14
Why not pass &initial_settings to GetNumberFormatA
dpapad
2011/11/10 20:04:01
Done.
| |
| 672 initial_settings.SetString(printing::kSettingNumberFormat, number_format); | |
| 673 initial_settings.SetInteger(printing::kSettingMeasurementSystem, | |
| 674 measurement_system); | |
| 675 } | |
| 676 web_ui_->CallJavascriptFunction("setInitialSettings", initial_settings); | |
| 642 } | 677 } |
| 643 | 678 |
| 644 void PrintPreviewHandler::ActivateInitiatorTabAndClosePreviewTab() { | 679 void PrintPreviewHandler::ActivateInitiatorTabAndClosePreviewTab() { |
| 645 TabContentsWrapper* initiator_tab = GetInitiatorTab(); | 680 TabContentsWrapper* initiator_tab = GetInitiatorTab(); |
| 646 if (initiator_tab) { | 681 if (initiator_tab) { |
| 647 static_cast<RenderViewHostDelegate*>( | 682 static_cast<RenderViewHostDelegate*>( |
| 648 initiator_tab->tab_contents())->Activate(); | 683 initiator_tab->tab_contents())->Activate(); |
| 649 } | 684 } |
| 650 ClosePrintPreviewTab(); | 685 ClosePrintPreviewTab(); |
| 651 } | 686 } |
| 652 | 687 |
| 653 void PrintPreviewHandler::SendPrinterCapabilities( | 688 void PrintPreviewHandler::SendPrinterCapabilities( |
| 654 const DictionaryValue& settings_info) { | 689 const DictionaryValue& settings_info) { |
| 655 VLOG(1) << "Get printer capabilities finished"; | 690 VLOG(1) << "Get printer capabilities finished"; |
| 656 web_ui_->CallJavascriptFunction("updateWithPrinterCapabilities", | 691 web_ui_->CallJavascriptFunction("updateWithPrinterCapabilities", |
| 657 settings_info); | 692 settings_info); |
| 658 } | 693 } |
| 659 | 694 |
| 660 void PrintPreviewHandler::SendDefaultPrinter( | |
| 661 const StringValue& default_printer, | |
| 662 const StringValue& cloud_print_data) { | |
| 663 base::FundamentalValue margins_type( | |
| 664 PrintPreviewHandler::last_used_margins_type_); | |
| 665 web_ui_->CallJavascriptFunction("setDefaultPrinter", | |
| 666 default_printer, | |
| 667 cloud_print_data, | |
| 668 margins_type); | |
| 669 } | |
| 670 | |
| 671 void PrintPreviewHandler::SetupPrinterList(const ListValue& printers) { | 695 void PrintPreviewHandler::SetupPrinterList(const ListValue& printers) { |
| 672 SendCloudPrintEnabled(); | 696 SendCloudPrintEnabled(); |
| 673 web_ui_->CallJavascriptFunction("setPrinters", printers); | 697 web_ui_->CallJavascriptFunction("setPrinters", printers); |
| 674 } | 698 } |
| 675 | 699 |
| 676 void PrintPreviewHandler::SendCloudPrintEnabled() { | 700 void PrintPreviewHandler::SendCloudPrintEnabled() { |
| 677 Profile* profile = BrowserList::GetLastActive()->profile(); | 701 Profile* profile = BrowserList::GetLastActive()->profile(); |
| 678 PrefService* prefs = profile->GetPrefs(); | 702 PrefService* prefs = profile->GetPrefs(); |
| 679 if (prefs->GetBoolean(prefs::kCloudPrintSubmitEnabled)) { | 703 if (prefs->GetBoolean(prefs::kCloudPrintSubmitEnabled)) { |
| 680 GURL gcp_url(CloudPrintURL(profile).GetCloudPrintServiceURL()); | 704 GURL gcp_url(CloudPrintURL(profile).GetCloudPrintServiceURL()); |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 868 return; | 892 return; |
| 869 | 893 |
| 870 // We no longer require the initiator tab details. Remove those details | 894 // We no longer require the initiator tab details. Remove those details |
| 871 // associated with the preview tab to allow the initiator tab to create | 895 // associated with the preview tab to allow the initiator tab to create |
| 872 // another preview tab. | 896 // another preview tab. |
| 873 printing::PrintPreviewTabController* tab_controller = | 897 printing::PrintPreviewTabController* tab_controller = |
| 874 printing::PrintPreviewTabController::GetInstance(); | 898 printing::PrintPreviewTabController::GetInstance(); |
| 875 if (tab_controller) | 899 if (tab_controller) |
| 876 tab_controller->EraseInitiatorTabInfo(preview_tab_wrapper()); | 900 tab_controller->EraseInitiatorTabInfo(preview_tab_wrapper()); |
| 877 } | 901 } |
| OLD | NEW |