| OLD | NEW | 
|---|
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #if defined(BROWSER_SYNC) | 5 #if defined(BROWSER_SYNC) | 
| 6 | 6 | 
| 7 #include "chrome/browser/dom_ui/new_tab_page_sync_handler.h" | 7 #include "chrome/browser/dom_ui/new_tab_page_sync_handler.h" | 
| 8 | 8 | 
| 9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" | 
| 10 #include "base/json_writer.h" |  | 
| 11 #include "base/string_util.h" | 10 #include "base/string_util.h" | 
| 12 #include "base/values.h" | 11 #include "base/values.h" | 
| 13 #include "chrome/browser/profile.h" | 12 #include "chrome/browser/profile.h" | 
| 14 #include "chrome/browser/renderer_host/render_view_host.h" | 13 #include "chrome/browser/renderer_host/render_view_host.h" | 
| 15 #include "chrome/browser/tab_contents/tab_contents.h" | 14 #include "chrome/browser/tab_contents/tab_contents.h" | 
| 16 #include "chrome/common/pref_names.h" | 15 #include "chrome/common/pref_names.h" | 
| 17 #include "chrome/common/pref_service.h" | 16 #include "chrome/common/pref_service.h" | 
| 18 #include "grit/browser_resources.h" | 17 #include "grit/browser_resources.h" | 
| 19 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" | 
| 20 #include "net/base/cookie_monster.h" | 19 #include "net/base/cookie_monster.h" | 
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 221       } else { | 220       } else { | 
| 222         value.SetBoolean(L"linkurlisset", true); | 221         value.SetBoolean(L"linkurlisset", true); | 
| 223         value.SetString(L"linkurl", linkurl); | 222         value.SetString(L"linkurl", linkurl); | 
| 224       } | 223       } | 
| 225     } | 224     } | 
| 226   } | 225   } | 
| 227   dom_ui_->CallJavascriptFunction(L"syncMessageChanged", value); | 226   dom_ui_->CallJavascriptFunction(L"syncMessageChanged", value); | 
| 228 } | 227 } | 
| 229 | 228 | 
| 230 #endif  // defined(BROWSER_SYNC) | 229 #endif  // defined(BROWSER_SYNC) | 
| OLD | NEW | 
|---|