从源码来看rc_11(11.80927)
,确实有Application::SetStartLink
设置起始URL的接口,但是这个参数根本没用过,在一些特殊情况下,从preloading状态切换到kStateStarted时没有办法改变url(例如添加拨号的url配对参数):
//there doesn't use the link param(url) in StartApplication in cobalt/browser/main.cc
void StartApplication(int /*argc*/, char** /*argv*/, const char* /*link*/,
const base::Closure& quit_closure) {
if (!g_application) {
g_application = new cobalt::browser::Application(quit_closure,
false /*should_preload*/);
DCHECK(g_application);
} else {
g_application->Start(); -->does NOT use the url param
}
}