 Chromium Code Reviews
 Chromium Code Reviews Issue 2788283002:
  Fix PrintPreviewDestinationSearchTest.Select  (Closed)
    
  
    Issue 2788283002:
  Fix PrintPreviewDestinationSearchTest.Select  (Closed) 
  | OLD | NEW | 
|---|---|
| 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 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ | 
| 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ | 
| 7 | 7 | 
| 8 #include <stdint.h> | 8 #include <stdint.h> | 
| 9 | 9 | 
| 10 #include <string> | 10 #include <string> | 
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 168 base::TimeTicks initial_preview_start_time_; | 168 base::TimeTicks initial_preview_start_time_; | 
| 169 | 169 | 
| 170 // The unique ID for this class instance. Stored here to avoid calling | 170 // The unique ID for this class instance. Stored here to avoid calling | 
| 171 // GetIDForPrintPreviewUI() everywhere. | 171 // GetIDForPrintPreviewUI() everywhere. | 
| 172 const int32_t id_; | 172 const int32_t id_; | 
| 173 | 173 | 
| 174 // Weak pointer to the WebUI handler. | 174 // Weak pointer to the WebUI handler. | 
| 175 PrintPreviewHandler* handler_; | 175 PrintPreviewHandler* handler_; | 
| 176 | 176 | 
| 177 // Indicates whether the source document can be modified. | 177 // Indicates whether the source document can be modified. | 
| 178 bool source_is_modifiable_; | 178 bool source_is_modifiable_ = false; | 
| 
Lei Zhang
2017/04/03 20:32:42
This is also being set in the constructor... to tr
 
skau
2017/04/04 17:37:02
Done.
 | |
| 179 | 179 | 
| 180 // Indicates whether the source document has selection. | 180 // Indicates whether the source document has selection. | 
| 181 bool source_has_selection_; | 181 bool source_has_selection_ = false; | 
| 182 | 182 | 
| 183 // Indicates whether only the selection should be printed. | 183 // Indicates whether only the selection should be printed. | 
| 184 bool print_selection_only_; | 184 bool print_selection_only_ = false; | 
| 
Lei Zhang
2017/04/03 20:32:42
This is the missing initialization. Let's move it
 
skau
2017/04/04 17:37:02
Done.
 | |
| 185 | 185 | 
| 186 // Store the initiator title, used for populating the print preview dialog | 186 // Store the initiator title, used for populating the print preview dialog | 
| 187 // title. | 187 // title. | 
| 188 base::string16 initiator_title_; | 188 base::string16 initiator_title_; | 
| 189 | 189 | 
| 190 // Keeps track of whether OnClosePrintPreviewDialog() has been called or not. | 190 // Keeps track of whether OnClosePrintPreviewDialog() has been called or not. | 
| 191 bool dialog_closed_; | 191 bool dialog_closed_ = false; | 
| 192 | 192 | 
| 193 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); | 193 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); | 
| 194 }; | 194 }; | 
| 195 | 195 | 
| 196 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ | 196 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ | 
| OLD | NEW |