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

Unified Diff: chrome/browser/chromeos/cros/network_library_impl_stub.cc

Issue 12381002: Improve network stub behavior (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/res/enabled Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/cros/network_library_impl_stub.cc
diff --git a/chrome/browser/chromeos/cros/network_library_impl_stub.cc b/chrome/browser/chromeos/cros/network_library_impl_stub.cc
index 921cf7a6d4b0d75ef496c06ea1fd1104a8b3e844..96c84ff20ee2245e7eca68d9e355a4e16c7a94ae 100644
--- a/chrome/browser/chromeos/cros/network_library_impl_stub.cc
+++ b/chrome/browser/chromeos/cros/network_library_impl_stub.cc
@@ -8,7 +8,7 @@
#include "base/command_line.h"
#include "base/stl_util.h"
#include "chrome/browser/chromeos/cros/native_network_constants.h"
-#include "chrome/common/chrome_switches.h"
+#include "chromeos/chromeos_switches.h"
#include "content/public/browser/browser_thread.h"
#include "third_party/cros_system_api/dbus/service_constants.h"
@@ -18,12 +18,12 @@ namespace {
bool IsEthernetEnabled() {
return !CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableStubEthernet);
+ chromeos::switches::kDisableStubEthernet);
}
bool IsInteractive() {
return CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableStubInteractive);
+ chromeos::switches::kEnableStubInteractive);
}
} // namespace
@@ -324,7 +324,7 @@ void NetworkLibraryImplStub::CompleteCellularInit() {
cellular2->set_name("Fake Cellular 2");
cellular2->set_device_path(cellular->device_path());
cellular2->set_strength(50);
- cellular2->set_activation_state(ACTIVATION_STATE_NOT_ACTIVATED);
+ cellular2->set_activation_state(ACTIVATION_STATE_ACTIVATING);
cellular2->set_network_technology(NETWORK_TECHNOLOGY_UMTS);
cellular2->set_roaming_state(ROAMING_STATE_ROAMING);
cellular2->set_payment_url(std::string("http://www.google.com"));
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698