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

Side by Side Diff: components/arc/net/arc_net_host_impl.cc

Issue 2816413003: [Do not land] Remove dcheck
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/arc/net/arc_net_host_impl.h" 5 #include "components/arc/net/arc_net_host_impl.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 &wc->signal_strength)) 399 &wc->signal_strength))
400 wc->signal_strength = 0; 400 wc->signal_strength = 0;
401 401
402 if (!wifi_dict->GetString(onc::wifi::kSecurity, &tmp)) 402 if (!wifi_dict->GetString(onc::wifi::kSecurity, &tmp))
403 NOTREACHED(); 403 NOTREACHED();
404 DCHECK(!tmp.empty()); 404 DCHECK(!tmp.empty());
405 wc->security = tmp; 405 wc->security = tmp;
406 406
407 if (!wifi_dict->GetString(onc::wifi::kBSSID, &tmp)) 407 if (!wifi_dict->GetString(onc::wifi::kBSSID, &tmp))
408 NOTREACHED(); 408 NOTREACHED();
409 DCHECK(!tmp.empty()); 409 //DCHECK(!tmp.empty());
410 wc->bssid = tmp; 410 wc->bssid = tmp;
411 411
412 mojom::VisibleNetworkDetailsPtr details = 412 mojom::VisibleNetworkDetailsPtr details =
413 mojom::VisibleNetworkDetails::New(); 413 mojom::VisibleNetworkDetails::New();
414 details->frequency = wc->frequency; 414 details->frequency = wc->frequency;
415 details->signal_strength = wc->signal_strength; 415 details->signal_strength = wc->signal_strength;
416 details->bssid = wc->bssid; 416 details->bssid = wc->bssid;
417 wc->details = mojom::NetworkDetails::New(); 417 wc->details = mojom::NetworkDetails::New();
418 wc->details->set_visible(std::move(details)); 418 wc->details->set_visible(std::move(details));
419 419
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 net_instance->WifiEnabledStateChanged(is_enabled); 657 net_instance->WifiEnabledStateChanged(is_enabled);
658 } 658 }
659 659
660 void ArcNetHostImpl::OnShuttingDown() { 660 void ArcNetHostImpl::OnShuttingDown() {
661 DCHECK(observing_network_state_); 661 DCHECK(observing_network_state_);
662 GetStateHandler()->RemoveObserver(this, FROM_HERE); 662 GetStateHandler()->RemoveObserver(this, FROM_HERE);
663 observing_network_state_ = false; 663 observing_network_state_ = false;
664 } 664 }
665 665
666 } // namespace arc 666 } // namespace arc
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698