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

Side by Side Diff: chrome/browser/dom_ui/new_tab_page_sync_handler.cc

Issue 337034: Remove the browser_sync flag. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/dom_ui/new_tab_page_sync_handler.h ('k') | chrome/browser/dom_ui/new_tab_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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)
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/new_tab_page_sync_handler.h ('k') | chrome/browser/dom_ui/new_tab_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698