| 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) |  | 
|    6  |  | 
|    7 #include "chrome/browser/dom_ui/new_tab_page_sync_handler.h" |    5 #include "chrome/browser/dom_ui/new_tab_page_sync_handler.h" | 
|    8  |    6  | 
|    9 #include "app/l10n_util.h" |    7 #include "app/l10n_util.h" | 
|   10 #include "base/string_util.h" |    8 #include "base/string_util.h" | 
|   11 #include "base/values.h" |    9 #include "base/values.h" | 
|   12 #include "chrome/browser/net/chrome_url_request_context.h" |   10 #include "chrome/browser/net/chrome_url_request_context.h" | 
|   13 #include "chrome/browser/profile.h" |   11 #include "chrome/browser/profile.h" | 
|   14 #include "chrome/browser/renderer_host/render_view_host.h" |   12 #include "chrome/browser/renderer_host/render_view_host.h" | 
|   15 #include "chrome/browser/tab_contents/tab_contents.h" |   13 #include "chrome/browser/tab_contents/tab_contents.h" | 
|   16 #include "chrome/common/pref_names.h" |   14 #include "chrome/common/pref_names.h" | 
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  220       if (linkurl.empty()) { |  218       if (linkurl.empty()) { | 
|  221         value.SetBoolean(L"linkurlisset", false); |  219         value.SetBoolean(L"linkurlisset", false); | 
|  222       } else { |  220       } else { | 
|  223         value.SetBoolean(L"linkurlisset", true); |  221         value.SetBoolean(L"linkurlisset", true); | 
|  224         value.SetString(L"linkurl", linkurl); |  222         value.SetString(L"linkurl", linkurl); | 
|  225       } |  223       } | 
|  226     } |  224     } | 
|  227   } |  225   } | 
|  228   dom_ui_->CallJavascriptFunction(L"syncMessageChanged", value); |  226   dom_ui_->CallJavascriptFunction(L"syncMessageChanged", value); | 
|  229 } |  227 } | 
|  230  |  | 
|  231 #endif  // defined(BROWSER_SYNC) |  | 
| OLD | NEW |