 Chromium Code Reviews
 Chromium Code Reviews Issue 2484633004:
  Change Lo-Fi bool to bitmask to support multiple Previews types  (Closed)
    
  
    Issue 2484633004:
  Change Lo-Fi bool to bitmask to support multiple Previews types  (Closed) 
  | Index: content/common/navigation_params.cc | 
| diff --git a/content/common/navigation_params.cc b/content/common/navigation_params.cc | 
| index 24078e67518416294d6d81eb225380f56e5427bc..7ff2b83e8d9974be98888096f59f6dbd5499fbaf 100644 | 
| --- a/content/common/navigation_params.cc | 
| +++ b/content/common/navigation_params.cc | 
| @@ -9,6 +9,7 @@ | 
| #include "content/common/service_worker/service_worker_types.h" | 
| #include "content/public/common/appcache_info.h" | 
| #include "content/public/common/browser_side_navigation_policy.h" | 
| +#include "content/public/common/previews_state.h" | 
| 
nasko
2016/12/12 23:05:41
Why was this include removed? It is needed for Pre
 
megjablon
2016/12/14 01:10:32
Sorry didn't see these comments before. It was add
 | 
| #include "content/public/common/url_constants.h" | 
| #include "url/gurl.h" | 
| #include "url/url_constants.h" | 
| @@ -35,7 +36,7 @@ CommonNavigationParams::CommonNavigationParams() | 
| allow_download(true), | 
| should_replace_current_entry(false), | 
| report_type(FrameMsg_UILoadMetricsReportType::NO_REPORT), | 
| - lofi_state(LOFI_UNSPECIFIED), | 
| + previews_state(PREVIEWS_UNSPECIFIED), | 
| navigation_start(base::TimeTicks::Now()), | 
| method("GET") {} | 
| @@ -51,7 +52,7 @@ CommonNavigationParams::CommonNavigationParams( | 
| FrameMsg_UILoadMetricsReportType::Value report_type, | 
| const GURL& base_url_for_data_url, | 
| const GURL& history_url_for_data_url, | 
| - LoFiState lofi_state, | 
| + int previews_state, | 
| const base::TimeTicks& navigation_start, | 
| std::string method, | 
| const scoped_refptr<ResourceRequestBodyImpl>& post_data) | 
| @@ -66,7 +67,7 @@ CommonNavigationParams::CommonNavigationParams( | 
| report_type(report_type), | 
| base_url_for_data_url(base_url_for_data_url), | 
| history_url_for_data_url(history_url_for_data_url), | 
| - lofi_state(lofi_state), | 
| + previews_state(previews_state), | 
| navigation_start(navigation_start), | 
| method(method), | 
| post_data(post_data) { |